I’m new to Tomcat SSL, now i have one certificate from someone which is signed with openssl, the files included as following:
ca.csr --server CSR
ca.key --root private key
cert.crt --server certificate
root.crt --root certificate
Basically i want to know how could i import the openssl certificate to my Tomcat7 server?
You need to convert from OpenSSL’s PEM format into DER, and then put the certificates into a keystore. You’ll also need the certificate’s key. You can see how to import a key and certificate here:
Just repeat the certificate procedure for each certificate. Also remember that you want to use “-alias tomcat” for the certificate that you want to have Tomcat use as your server’s certificate (cert.crt).
You will not need the CSR for anything at this point: it was only used to get the certificate authority (CA) to issue a certificate to you.