chrome://flags/#allow-insecure-localhost
Created
September 7, 2018 00:13
-
-
Save ninetails/96c8730c6a7255fcff5fff994682b8cd to your computer and use it in GitHub Desktop.
Make Chrome accept self-signed certificates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from https://medium.com/@hunk/self-assigned-ssl-with-docker-for-dev-domains-1396f71c0b77 | |
docker stop $(docker ps -aq) | |
docker rm $(docker ps -aq) | |
rm -rf *.crt *.key | |
openssl req \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout ninetails.dev.key \ | |
-new \ | |
-out ninetails.dev.crt \ | |
-subj /CN=\*.ninetails.dev \ | |
-reqexts SAN \ | |
-extensions SAN \ | |
-config <(cat /etc/ssl/openssl.cnf \ | |
<(printf '[SAN]\nbasicConstraints = critical,CA:true\nsubjectKeyIdentifier = hash\nauthorityKeyIdentifier = keyid:always,issuer\nsubjectAltName=DNS:\*.ninetails.dev')) \ | |
-sha256 \ | |
-days 3650 | |
docker run -d -p 80:80 -p 443:443 --name proxy --restart=always -v $(pwd):/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy | |
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment