Self-signed SSL Certificate one-liner
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domain.key -out domain.crtopenssl req- generate a certificate-x509- use x509 specification-nodes- no DES, don't encrypt the private key-days 365- valid for 1 yearrsa:2048- use a 2048 bit private key-keyout- output location of the private key-out- output location of the certificate