OpenSSL: Create an external CA
Perform the following steps to use OpenSSL to create an External CA:Generate a self-signed certificate for CA (by using the previously generated private key):
Shell
This generates the following files:
- The CA private key:
ext-CA-privatekey.pem - The CA self-signed cert:
ext-CA-cert.pem
Java KeyTool: Generate a CSR for an external CA
Perform the following steps to use Java KeyTool to generate a CSR for an external CA:Java KeyTool: Generate and export a CSR
Perform the following steps to use JavaKeyTool to generate and export a CSR:Send the CSR to the external CA previously created in OpenSSL, either third-party or internal, to get it signed.
The CA returns a signed server certificate and a root CA certificate.
OpenSSL: Sign the Tomcat server CSR
Perform the following steps to use OpenSSL to sign the Tomcat server CSR:Sign the CSR and generate the signed Tomcat server certificate:
Shell
This generates the signed Tomcat server cert:
ssl-tomcatserver-cert.pemJava KeyTool: Import the CA root certificate
Perform the following steps to use Java KeyTool to import the CA root certificate:Java KeyTool: Import the signed server certificate
Perform the following steps to use Java KeyTool to import the signed server certificate:Test Apache Tomcat
Perform the following steps to test Apache Tomcat:Open a web browser and go to https://localhost:8443.
The connection should show the certificate information.The subject and issuer are different because this is not a self-signed certificate.

