IBM Support

How to generate a jks keystore with existing private key

Question & Answer


Question

SSL configuration for Spectrum Conductor requires jks keystore. How to generate a jks keystore with existing private key?

Answer

Use private key to generate a p12 keystore then convert it to jks keystore:

  1. openssl pkcs12 -export -in user.pem -inkey user.key -certfile user.pem -out testkeystore.p12
  2. keytool -importkeystore -srckeystore testkeystore.p12 -srcstoretype pkcs12 -destkeystore wso2carbon.jks -deststoretype JKS

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS4H63","label":"IBM Spectrum Conductor"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
20 December 2018

UID

ibm10792347