Tuesday, August 14, 2012

Input not an X.509 certificate

When I imported a certificate in my keystore, I got the error “Input not an X.509 certificate”

The keytool is very strict about format. If you have anything in your certificate before —–BEGIN CERTIFICATE—– or anyting after —–END CERTIFICATE—–

After I remove that the text before “—–BEGIN CERTIFICATE—– ”, I can import the certificate.

No comments:

Post a Comment