Skip to content

Instantly share code, notes, and snippets.

@khaledosman
Created September 13, 2018 08:47
Show Gist options
  • Save khaledosman/d1ecfaf77f6e5f09a5a3ddeaec979fbe to your computer and use it in GitHub Desktop.
Save khaledosman/d1ecfaf77f6e5f09a5a3ddeaec979fbe to your computer and use it in GitHub Desktop.
Converts *.key and *.crt files to pem format
#Convert private key to em format
openssl rsa -in domain.key -text > domain.pem
#Convert .crt file to .pem format
openssl x509 -in cert.crt -out cert.pem -outform PEM
openssl x509 -in ca.crt -out ca.pem -outform PEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment