Loading

How to convert a PFX type certificate to PEM format for my Dedicated Load Balancer

Date de publication: Oct 29, 2024
Tâche

GOAL

I need to renew my Dedicated load balancer certificate. The certificate is in PFX format however the DLB requires PEM type certificates. 
Étapes
To convert a PFX certificate to PEM please follow the commands below
 

Conversion to separate PEM files

We can extract the private key form a PFX to a PEM file with this command:

# openssl pkcs12 -in filename.pfx -nocerts -out key.pem
 

Exporting the certificate only: (use this to upload to the DLB, you may need to include intermediate certificates if any)

# openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
 

Removing the password from the extracted private key:

# openssl rsa -in key.pem -out server.key
Numéro d’article de la base de connaissances

001115550

 
Chargement
Salesforce Help | Article