Skip to content

Instantly share code, notes, and snippets.

@Filirom1
Last active July 27, 2020 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Filirom1/869b58eef90c5a6357e1 to your computer and use it in GitHub Desktop.
Save Filirom1/869b58eef90c5a6357e1 to your computer and use it in GitHub Desktop.
Generate self signed certificates

Execute the following command to create a self signed certificate

openssl genrsa -out private.key 2048
openssl req -nodes -x509 -days 3650 -config ssl.cnf -new -key private.key -out example.com
[ req ]
distinguished_name = req_distinguished_name
prompt = no
[ req_distinguished_name ]
C = FR
ST = Rhone-Alpes
L = Lyon
O = Company
OU = Team
CN = example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment