How do I convert from a Java keystore certificate to .pem format?
To convert a Java keystore certificate to .pem format, follow these
steps:
-
Download and run the KeyTool
-
Export the private key and certificate chains file from the keystore to a
.pemfile. This can be done by selectingExport > Keystore's Entry > Private Keyfrom the KeyTool IUI. Choose a target private key file and a target certificate chains file, and select.pemas the export format for both. Note that you will need to know the keystore password in order to perform the extraction. -
Using a text editor, append the private key file to the certificate chains file.
-
Verify that the resulting certificate is readable via
opensslas described in this Knowledge Base article: How do I display the contents of a SSL certificate?
You should now have a .pem formatted certificate which you can use
with CDRouter. For more information on using alternate certificates
with CDRouter, please see this Knowledge Base article:
How do I use my own certificates for CDRouter’s ACS?