Featured Post

hello world!

Hi kids, I am posting again! I have decided, in light of my weak social life at the moment and lack of memorable drunken debauchery, to change the blog a bit. It will now be more about tech stuff. That is all I have for now, but there will be some real content in the next few days. The old blog has...

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.