Skip to content

Instantly share code, notes, and snippets.

@steamonimo
Last active April 28, 2021 18:30
Show Gist options
  • Save steamonimo/2368774f60175efb6d86c00ffab3ffc0 to your computer and use it in GitHub Desktop.
Save steamonimo/2368774f60175efb6d86c00ffab3ffc0 to your computer and use it in GitHub Desktop.
openssl: commands

OpenSSL: shell commands

Combine pem file and key file to single pfx file

openssl pkcs12 -export -inkey a.key -in a.pem -out a.pfx

Convert cer/crt file to pem file

openssl x509 -inform der -in a.cer -out a.pem

Create self signed ssl certificate

openssl req -x509 -newkey rsa:4096 -keyout a.key -out a.pem -days 365
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment