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 "www.mysecuresite.com" 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 "www.mysecuresite.com"
Refer to the Oracle documentation on the keytool command under the -importkeystore section for more information and options.
Disclaimer: This content is provided as-is. The information may be incorrect.