How to create a self-signed certificate
If you need for test purpose to generate a self-signed certificate you can use the following procedure.
Download the following ini file, changing IP address and hostname
Run the following openSSL command
openssl req -x509 -newkey rsa:4096 -keyout nginx.key -out nginx.crt -days 3650 -nodes -config cert.ini
Substitutes the generate file nginx.key and nginx.crt with the one present in nginx folder (C:\Program Files\nginx\conf\certs) and restart nginx service
Â