Anaplan V2 Connector

Anaplan V2 Connector

Create a Java KeyStore

Create a Java KeyStore

Storing sensitive information like the private key in the file system can be insecure. Use a Java KeyStore to protect the private key and certificate with a KeyStore password.
Perform the following steps to create a Java KeyStore:
  1. Run the following command to create a pkcs12 bundle called
    keystore_bundle.p12
    using the private key and public certificate:
    $ openssl pkcs12 -export -in <CERTIFICATE.pem> -inkey <PRIVATE_KEY.pem> -out keystore_bundle.p12 -name <KEYSTORE_ALIAS> -CAfile <CERTIFICATE.pem> -caname root
    The following table describes the openssl arguments:
    Arguments
    Description
    CERTIFICATE.pem
    The public certificate.
    PRIVATE_KEY.pem
    The private key.
    keystore_bundle.p12
    The generated pkcs12 formatted file.
    KEYSTORE_ALIAS
    The alias of your public certificate in the pkcs12 bundle.
    You are prompted to create the KeyStore password. Enter a password of your choice. This password is required to create the Java KeyStore.
  2. Run the following command to create the Java KeyStore called
    my_keystore.jks
    using the pkcs12 file:
    $ keytool -importkeystore -deststorepass <KEYSTORE-PASSWORD> -destkeystore my_keystore.jks -srckeystore keystore_bundle.p12 -srcstoretype PKCS12
    The following table describes the keytool arguments:
    Arguments
    Description
    my_keystore.jks
    The generated Java KeyStore file.
    keystore_bundle.p12
    The pkcs12 bundle.
    You are prompted for the
    KEYSTORE-PASSWORD
    . Enter the KeyStore password.
    The generated .jks file contains the KeyStore that securely holds the private key and the certificate.

0 COMMENTS

We’d like to hear from you!