Friday, March 24, 2017

Creating a P7B Cert for Tomcat apps


A P7B ssl cert is a binary cert that contains both public and private key that is used by Tomcat and Java for secure transport.  Arun GP  gives a great write up about the different SSL formats.  When you download a SSL cert for Tomcat from Entrust the cert is in PEM format so if you need to convert it to a P7B cert you have to do a few extra steps.

Import the PEM cert in Internet Explorer:

Go to IE on the main menu choose Tools > Options > Content Tab > Certificates button.


choose import and upload your PEM cert. Go through the Wizard.



When you are done close IE and open it again.

Export the SSL in P7B format using Internet Explorer:


Go to IE on the main menu choose Tools > Options > Content Tab > Certificates button.

This time highlight your cert that you upload and choose the export button and go through the wizard
again.


Choose P7B format choose "Include all certificates in the certification path if possible"



Give it a name and finish.

There are other ways to change the format of a cert.  SSL Shopper has a pretty handy web application.  Or you can download and install Openssl and use the command line.

No comments:

Post a Comment