based on this: https://gist.github.com/jonathantneal/774e4b0b3d4d739cbc53
mkdir some/path/ssl
sudo openssl genrsa -out some/path/ssl/localhost.key 2048
sudo openssl req -new -x509 -key some/path/ssl/localhost.key -out some/path/ssl/localhost.crt -days 3650 -subj /CN=localhost
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain some/path/ssl/localhost.crt
use with budo:
budo index.js --ssl --cert=some/path/ssl/localhost.crt --key=some/path/ssl/localhost.key