Skip to content

Set up SSL Keystore for Java Case API Application

MsaasAPI edited this page Sep 18, 2018 · 12 revisions

CONTENTS

PREREQUISITE

  • 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.

CREATE KEYSTORE

  1. Open the Command Prompt as administrator.

  2. Navigate to JRE bin folder. JRE folder shall be located inside Java folder along with JDK folder.

  3. Create a keystore with the following command.

    keytool -genkeypair -alias mydomain -keyalg RSA -keystore myFavKeyStoreName.jks
    

  4. 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.

  5. Import private key certificate with the following command.

    keytool -importkeystore -srckeystore "yourPath\yourPrivateKey.pfx" -srcstoretype pkcs12 -destkeystore myFavKeyStoreName.jks -deststoretype JKS
    

C#

Visual Studio

  • Get Started

VS Code

  • Get Started

JAVA

VS Code

NODEJS

VS Code

POSTMAN

REFERENCES

Clone this wiki locally