Tuesday, June 09, 2009

keytool error: java.security.cert.CertificateException: java.io.EOFException

0FE761F8-5D95-4ABB-A1C4-B294138A2883.jpg

Today when I tried to import a signed SSL certificate from ipsCA using the Java keytool (JRE 1.6) I received the error message "keytool error: java.security.cert.CertificateException: java.io.EOFException".

In this case, the error was caused by a blank line at the end of the file after "-----END CERTIFICATE-----". Using vim I was able to edit the file, save it and successfully import it.

1 comment:

Anonymous said...

check also if using java keytool instead of gnu tool.