How to extract a private key from a pfx file
search cancel

How to extract a private key from a pfx file

book

Article ID: 202120

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

We have a pfx file but need to get the private key from it, in order to create a keystore

Environment

Release : 20.2

Component : IM Reporting / Admin / Configuration

Cause

.PFX (Personal Information Exchange) file is used to store a certificate and its private and public keys

Resolution

openssl pkcs12 -in <name.pfx> -nocerts -out <name.key>

Additional Information

You can then use the private key, along with the certificate, to create a PKCS#12 keystore, per the documentation; under the section "Import a Key and an Existing Certificate"

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/20-2/administrating/single-sign-on/set-up-https/enable-performance-center-to-use-ssl-manually/set-up-ssl-certificates-for-performance-center.html