Skip to content

Instantly share code, notes, and snippets.

@ywwwtseng
Created August 21, 2017 08:47
Show Gist options
  • Save ywwwtseng/135e4f6927d4f8d4447b1b675d0bf0d2 to your computer and use it in GitHub Desktop.
Save ywwwtseng/135e4f6927d4f8d4447b1b675d0bf0d2 to your computer and use it in GitHub Desktop.
Create a self-certified certificate

Create a self-certified certificate

For development purposes you can create a self-certified certificate.Here's how to do it on a linux-based system.

generate a private key

> openssl genrsa 1024 > key.pem

This will store a 1024 bit RSA key in the file key.pem Then, generate an SSL certificate with that key:

> openssl req -x509 -new -key key.pem > key-cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment