- Modify
/etc/hostsfile to haveexample.compoint to127.0.0.1 - Optional: generate certs (certs are already generated and checked into source (not recommended for prod use))
openssl req -new -newkey rsa:4096 -days 9999 -nodes -x509 \
-subj "/C=US/O=Example Inc./CN=example.com" \
-keyout key.pem -out cert.pemnpm install(for express)node server.js- Navigate to https://example.com
- If in chrome type "thisisunsafe" and press enter.