
Open it as a plain text and create there a record like below: Usually tomcat’s configuration file is named server.xml. Once the the keystore is completed, you will need to describe it in the configuration of your tomcat. Keytool -list -rfc -keystore yourkeystore.jks To review the certificates added to the keystore as a plain text run the following command: Nowadays usually chain has at least three certificates: root, intermediate and certificate signed by intermediate. You should see details of the certificates imported into the keystore in the output:Ġn screenshot the chain consists of 2 certificates: root and certificate signed by root, that was created for testing purposes. Keytool -list -keystore yourkeystore.jks -v To check the certificates which are added in the keystore run the command below: “Certificate reply was installed in keystore” If the certificate is imported successfully, and the keystore is completed, you should see the message: Keytool -import -trustcacerts -alias tomcat -file yourcertificate.p7b -keystore yourkeystore.jks If the certificate was received in PKCS7 format (usually it has *.cer or *.p7b extension), which includes the certificate issued for you domain with the CA certificates, you need import it in the keystore:

If you did not specify the alias during the keystore creation, the default value will be ' mykey'. The alias for your domain certificate should be the same as the one you used when creating the keystore with the private key. Keytool -import -trustcacerts -alias tomcat -file yourcertificate.crt -keystore yourkeystore.jks Important! If you received several intermediate certificates from the Certificate Authority, please import them one by one using different aliases.įinally, you need to import the certificate issued for your domain name. Keytool -import -trustcacerts -alias intermediate -file Intermediate.crt -keystore yourkeystore.jks Keytool -import -trustcacerts -alias root -file RootCA.crt -keystore yourkeystore.jksĬommand for importation of a CA Intermediate certificate to the keystore: If the certificate has been received in PEM format, you will need to add the CA root, CA intermediate, and certificate issued for your domain name in your keystore manually, in this order - starting from CA root and finishing with the certificate issued for your domain name.Ĭommand for importation of a CA Root certificate to the keystore:
KEYSTORE EXPLORER TO P7B DOWNLOAD
It is also possible to download the certificate along with the certificate trusted chain (CA bundle/intermediate certificates) from ZTABOX email. To check whether or not your certificate has been installed correctly, simply use the built-in ZeroSSL "Check Installation" tool or try accessing your domain using HTTPS, e.g.The installation process differs slightly depending on the format of the certificate you received from a Certificate Authority.
KEYSTORE EXPLORER TO P7B INSTALL
xml configuration file, which is typically stored in the conf folder of your server's home directory.Įnter the keystore filename and password, as seen in the example below: įinally, restart your Tomcat server in order for your changes to come into effect.Ĭongratulations, you have completed all required steps to install your SSL certificate. Next, you will need to configure an SSL connector on your server, which will allow the server to accept secure connections via HTTPS. If you are prompted to confirm whether or not this certificate should be trusted, enter "Y" or "Yes" in order to confirm. If your installation was successful, you should receive the following message: "Certificate reply was installed in keystore.". Next, you will need to run the following command in order to install your certificate: keytool -import -trustcacerts -alias server -file your_file_name.p7b -keystore your_domain_name.jks Upload your converted certificate files (certificate.p7b and ca_bundle.p7b) as well as your private.key file to your server in a directory of your choice. Step 2: Upload Certificate Files to Server This can be done easily by using the OpenSSL command below: openssl crl2pkcs7 -nocrl -certfile certificate.crt -out certificate.p7b -certfile ca_bundle.crt

KEYSTORE EXPLORER TO P7B HOW TO
Still haven't downloaded your certificate? To get instructions for how to download your certificate (.zip), you can click here.Īfter downloading your certificate, you should have a ZIP containing the following certificate files:įirst and foremost, you will need to convert your certificate.crt and ca_bundle.crt files from PEM (.crt) to PKCS#7 (.p7b).

You can find instructions for installing an SSL certificate on a Tomcat web server below.īefore you start, please make sure you have downloaded your certificate files. Help Center Install on Tomcat Installing SSL Certificate on Tomcat
