This question already has an answer here:
I been trying all day long to get https work on my local website using self-signed ssl certificate.
I was following all the necessary instructions:
- Generated .crt and .key files following the guide on https://devcenter.heroku.com/articles/ssl-certificate-self
Configured nginx to use ssl
listen 443; ssl on; ssl_certificate /usr/local/etc/nginx/ssl/server.crt; ssl_certificate_key /usr/local/etc/nginx/ssl/server.key;
- Added generated certificate into mac's keychain and checked it as 'Always trust'
But it didn't make https work and I keep getting Chrome's (or other browser's) "Your connection is not private"
mac OS Sierra 10.12.6, nginx installed via homebrew
What did I do wrong?