Generate a self-signed Certificate for a Domain
We can use openssl to generate a self-signed certificate for a domain for testing puspose, and use it for Nginx or any other tools.
The following command are used to generate.
It will ask several questions, you should be carefull with the common name, usually, input the domain name.