Table of Contents

Search

  1. Preface
  2. Introduction to REST V2 Connector
  3. Connections for REST V2
  4. REST V2 operations
  5. Mappings and mapping tasks with REST V2 Connector
  6. Swagger File Generation
  7. Appendix A: Swagger objects
  8. OpenAPI objects

REST V2 Connector

REST V2 Connector

Generate a keystore

Generate a keystore

To generate a keystore, you need a client certificate and a client private key. Get the client certificate and client private key, and then perform the following steps to generate the keystore:
  1. Import the certificate to the following file path:
    <Secure Agent installation directory>\jre\lib\security\cacerts
  2. To generate the keystore, run the following command from the command line:
    openssl pkcs12 -export -in
    <Specify client certificate here>
    -inkey
    <Specify client private key here>
    -name "
    <Specify any name here>
    " -passout pass:
    <Specify password for the keystore to be generated>
    -out
    <Specify name for the keystore with p12 extension>
    For example,
    openssl pkcs12 -export -in /home/samplefolder/certs/client-cert.pem -inkey /home/samplefolder/certs/client-key.pem -name "restclient" -passout pass:PKCSKeyStorePassword -out samplekeystore.p12
    In the example, a keystore file by the name
    samplekeystore.p12
    is generated in the PKCS12 format.
    To convert the keystore file from .p12 format to .jks format, run the following command from the command line:
    keytool -importkeystore -srckeystore
    <Specify name of the p12 keystore file>
    -srcstoretype pkcs12 -srcstorepass
    <Specify password for generated p12 keystore file>
    -destkeystore
    <Specify name for the JKS keystore file>
    -deststoretype JKS -deststorepass
    <Specify password for the JKS keystore file>
    Ensure that the password specified in
    -srcstorepass
    must be the same as the
    -deststorepass
    .
    For example,
    keytool -importkeystore -srckeystore samplekeystore.p12 -srcstoretype pkcs12 -srcstorepass PKCSKeyStorePassword -destkeystore keystore -deststoretype JKS -deststorepass PKCSKeyStorePassword
    In the example, a keystore file is generated by the name
    samplekeystore
    and password
    PKCSKeyStorePassword
    .

0 COMMENTS

We’d like to hear from you!