Skip to content

Instantly share code, notes, and snippets.

@orleika
Last active August 1, 2017 07:06
Show Gist options
  • Save orleika/8f8cd02fffaea63c0060 to your computer and use it in GitHub Desktop.
Save orleika/8f8cd02fffaea63c0060 to your computer and use it in GitHub Desktop.
How to make x.509 self-signed certificate

How to make x.509 self-signed certificate

# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myPrivateKey.key -out myCert.pem
# chmod 600 myPrivateKey.key
# openssl  x509 -outform der -in myCert.pem -out myCert.cer
myCert.cer
CER certificate
myCert.pem
PEM certificate
myPrivateKey.key
private key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment