Featured Post

Facebook is better

Just tried to change my name on facebook and before it gave me this: Before confirming your name change request, please read the following. * Your Facebook profile must be attached to your real name. * You must include your full name. * Celebrity names, nicknames, or other fake names are not allowed...

Read More

keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139

Posted by brendo | Posted in programming | Posted on 11-03-2008

Tags: , , , , , ,

1

When playing with SSL certificates and Java I came across a very weird error that I could not find a solution to anywhere.

I had submitted my CSR and got the certificate back in an email, so I copied it and pasted it into a .cer file ready to SSL my applet, but when trying to import the certificate, I got the following error:

keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139

After much searching of forums and Google, I could not find any reference to this specific error message other than something about copy and pasting from the wrong format. I thought that maybe it was something to do with Outlook, so logged into Gmail and copy and pasted from there, voila!

I decided to make sure Outlook was my problem before slaying it all over the intarwebz and sure enough, copy and pasting from Outlook again threw the error, but doing it from Gmail did not. I no longer copy and paste anything important out of Outlook.

Comments (1)

Outlook tends to frig around with newlines, which are pretty important, generally, in things like certificates. Outlook = fail on so many levels.

Write a comment