> mkdir -p ~/.cert; cd ~/.cert
> openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
Generating a 2048 bit RSA private key
...............................+++
..................................................................+++
writing new private key to 'key.pem'
-----
You are about to be asked to enter information that will be incorporatedOlderNewer