HOW TO - OpenSSL Certificate Conversions (WIP)

 


Synopsis: Use OpenSSL for certificate conversions

Intro: I normally use IIS for attaching keys to .cer files, but needed to use a specific tool for a client with an infrastructure less environment. This is a working document which I will expand with notes.

Quick Run Down:

1.)Downloading the tool.

2.) Converting .cer to .pem

Tech Stack:

·         OpenSSL - Free

 

1.) Downloading the tool.

OpenSSL can be downloaded from several sources. Note that some installs won't update the %PATH% variable for OpenSSL. This can be mitigated by calling the command with the full file path of the utility.

 

2.) Converting .cer to .pem

To convert an Azure .cer certificate to a .pem file using OpenSSL, you can use the command:

openssl x509 -in <path-to-cer-file> -outform pem -out <path-to-pem-file>

 

Additional notes:

If the .cer is DER encoded, the command needs to be modified like so

openssl x509 -inform DER -in <path-to-cer-file> -out <path-to-pem-file> -outform PEM

Comments

Popular posts from this blog

HOW TO - Properly remove Entra AD Connect

HOW TO - Deploy HP Universal Print Driver w/ Intune

HOW TO - Open SharePoint Resource in New Tabs w/ Column Formats