IBM Support

How to export private key and public key from keystore

Question & Answer


Question

I need private key and public key as separate file for SSL configuration. How to export private key and public key from my existing keystore?

Answer

Export the private key from pkcs12 format keystore

openssl pkcs12 -in keystore_name.p12 -nodes -nocerts -out private.key

 

Export the public certificate from pkcs12 format keystore

openssl pkcs12 -in keystore_name.p12 -nokeys -out public-cert-file

[{"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

ibm10792343