SSL certificat X509 problem


I am trying to configure my tomcat (Raspbian installed and java latest version) to allow https.
i am following this article :

But in the step:

To install the SSL Certificate file to your keystore, type the following command:
keytool -import -trustcacerts -alias server -file cert.p7b -keystore your_site_name.jks
You should get a confirmation stating that the “Certificate reply was installed in keystore.”

I receive an error:

keytool error: java.lang.Exception: Input not an X.509 certificate

Do you have any idea ?

Thanks so much.

Try to import it in PEM format (.crt)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.