java.security.cert.CertificateException: java.io.EOFException
Posted by John Paul van Helvoort on July 2, 2009
tomcat@xxx $ keytool -import -trustcacerts -file cert_xxxx.pem -alias login.example.nl -keystore ssl.keystore
Enter keystore password: xxx
keytool error: java.security.cert.CertificateException: java.io.EOFException
After opening the pem file we saw a strange “enter” after the END CERTIFICATE.
—–END CERTIFICATE—–
~
After removing this obsolete “enter” line the import went well.
—–END CERTIFICATE—–
~
