Articles on websites & etc.

§ Home > Index > Web Development

Move SSL Certificate to another JKS Keystore

The command below shows how to move an SSL certificate from one Java keystore file (.jks) to another Java keystore file.

If you try to export the "Private Key and Certificates" using Portecle as a PKCS #12 file, and then re-import it into the destination keystore, then Atlassian Confluence/JIRA will not recognize the certificate. To do a clean migration of the SSL certificate, use the the Java keytool.exe command as described below. In the command below, only the certificate with alias "" will be migrated over.

"C:\Program Files\Java\jre7\bin\keytool.exe" -importkeystore -srckeystore "D:\source-keystore.jks" -destkeystore "D:\destination-keystore.jks" -srcstorepass password -deststorepass password -srcalias ""

Refer to the Oracle documentation on the keytool command under the -importkeystore section for more information and options.

Created 2013-11-14, Last Modified 2016-12-01, © Shailesh N. Humbad
Disclaimer: This content is provided as-is. The information may be incorrect.