How to create a Java Key Store (JKS)
Please note that Keytool is a java application and you will need to confirm that is installed on your machine. If not you will need to install a java version that has keytool, either jre or jdk. Once you have confirmed that a jdk is installed, please go to the search bar and type in – cmd. This will bring up the command line prompt, and then execute the script as defined below. NOTE you will have to use OpenSSL or a similar tool to create the PKCS12 documents if that has not been created by another person.
A good site to visit for additional information regarding the jks: https://coderwall.com/p/3t4xka/import-private-key-and-certificate-into-java-keystore
NOTE that you have to change your directory to location of the certifcate
Example:
cd C:\OpenSSL-Win64\bin\anaplan_api_v2_jks
keytool -importkeystore -deststorepass PASSWORD -destkeystore JAVAKEYSTOREFILE.jks -srckeystore CERTIFICATE.p12 -srcstoretype PKCS12
1 | keytool -importkeystore -deststorepass <password> -destkeystore anaplanconnectapp.jks -srckeystore anaplanconnectapp.p12 -srcstoretype PKCS12 |
Screenshot of the executed code
Answers
-
Thanks for sharing this Jason.
0