Creates a certificate which is valid for 10 years:
openssl req -nodes -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3650
Creates a certificate which is valid for 10 years:
openssl req -nodes -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3650