Assumes you will be running your local app at local.dev
, and already have a hosts file entry for this domain pointing to 127.0.0.1
.
openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout ~/path/to/local.dev.key -out ~/path/to/local.dev.crt
You can leave all the address and organization info blank.