How do I deal with NET:ERR_CERT_AUTHORITY_INVALID in Chrome? (OSX)
Lately chrome updated their HSTS and cert security – that made pain in the ass for any web developer who has their own virtual machine with https that they are developing on.
The simply solution is to add your self-signed cert to mac keychains:
export HOST="your_ip:443" openssl s_client -connect $HOST -showcerts </dev/null 2>/dev/null|openssl x509 -outform PEM > /tmp/mycert.crt sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "/tmp/mycert.crt"