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 |