-
Self-signed global wildcard certificate1:
openssl req -x509 -new -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -subj '/CN=*'
-
Convert PEM to PKCS12
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile more.crt
Footnotes
-
This certificate will be accepted for any domain name or purpose. Then you can put
127.0.0.1
in yourhosts
file and develop with name-base vhosting. ↩