Self signed certficate one liner.
This is how to create a self signed certificate with one command:
openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -batch
365days to expire.4096is the key lenght.
If you want to fill organization, country, common name and such, remove the -batch option.
Regards