1. Create a Self-signed Certificate (valid for an year)
openssl req -new -x509 -keyout localhost.key -out localhost.pem -days 365 -nodes
# ... # some other settings go on... # ... http { # ... # some other settings go on... # ... server { listen 8443 ssl; server_name localhost; ssl_certificate /path/to/localhost.pem; # TODO: fix location ssl_certificate_key /path/to/localhost.key; # TODO: fix location ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://localhost:9000; } } }
- macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:8443
- Linux
google-chrome --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:8443
- Windows
- chrome://flags/#allow-insecure-localhost -
enableand relaunch - ToDo: doesn't work.