-
Notifications
You must be signed in to change notification settings - Fork 1
Set up SSL Keystore for Java Case API Application
MsaasAPI edited this page Sep 18, 2018
·
12 revisions
- Locate the private key file (*.pfx) and its password on your local box. This private key should be created by your team, or even created by you as self-signed certificate on your local box.
- Install Java JDK.
-
Open the Command Prompt as administrator.
-
Navigate to JRE bin folder. JRE folder shall be located inside Java folder along with JDK folder.
-
Create a keystore with the following command.
keytool -genkeypair -alias mydomain -keyalg RSA -keystore myFavKeyStoreName.jks
-
Answer several questions (or left some blank). Type y or yes to confirm the information. If prompted for domain password, it may be left blank and simply press Return/Enter to proceed.
-
Import private key certificate with the following command.
keytool -importkeystore -srckeystore "yourPath\yourPrivateKey.pfx" -srcstoretype pkcs12 -destkeystore myFavKeyStoreName.jks -deststoretype JKS