Skip to content

Instantly share code, notes, and snippets.

@stuartpreston
Created February 3, 2015 14:52
Show Gist options
  • Save stuartpreston/332d428dc342d13d7180 to your computer and use it in GitHub Desktop.
Save stuartpreston/332d428dc342d13d7180 to your computer and use it in GitHub Desktop.
[OpenSSL] Convert base64 encoded DER to PEM format (e.g. to convert Microsoft Azure Management Certificate to .PEM format for cross-platform compatibility)
openssl base64 -d -A -in mgmtcert.pfx -out decoded.der
openssl pkcs12 -in decoded.der -out mgmtcert.pem -nodes
@gabrieldrs
Copy link

Saved me... really

@Mike-S-BA
Copy link

Saved me... really

+1

@TWolverson
Copy link

+1

@esunilkumare
Copy link

esunilkumare commented Nov 2, 2022

Great... Saved my day. Thanks a lot for sharing :)

Used openssl base64 -d -A -in mgmtcert.pfx -out decoded.der to convert base64 encoded CER file to binary CER file

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment