kevwil/nh2

self-signed certificates?

ph-hs opened this issue · 0 comments

ph-hs commented

Should this work?

openssl genrsa > privkey.pem
openssl req -new -x509 -key privkey.pem -out cert.pem -days 1095
# press enter a few times
chmod 600 privkey.pem cert.pem
node index.js -k privkey.pem -c cert.pem -h paulhammant.com -p 4443

# open browser to https://localhost:4443/index.html