Featured Post

the problem with passwords

The expiring password is a practice that I am not a fan of. I see the benefit(s?): If someone has intercepted/cracked your password, changing it will block their access. Umm… I’m sure there are others… While I try to think of those, let’s look at the drawbacks: Whenever you...

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.