keytool java.security.cert.CertificateParsingException: signed overrun, bytes = 139
Posted by brendo | Posted in programming | Posted on 11-03-2008
Tags: certificate, exception, gmail, java, outlook, security.cert.certificateparsingexception, ssl
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.


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