source: https://github.com/Azure/azure-xplat-cli/wiki/Getting-Self-Signed-SSL-Certificates-(.pem-and-.pfx)
- Generating a private key:
openssl genrsa 2048 > private.pem
- Generating the self signed certificate:
openssl req -x509 -new -key private.pem -out public.pem