Created
January 25, 2019 15:36
-
-
Save kevinquillen/2c3accdb2cc5e5564e4c82da1d0bca66 to your computer and use it in GitHub Desktop.
Generate self signed cert for local docker dev with SAN for Chrome (example done on MacOS)
This file contains 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
openssl req -newkey rsa:2048 -x509 -nodes -keyout cert.key -new -out cert.crt -subj /CN=*.docker.localhost -reqexts SAN -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:*.docker.localhost')) -sha256 -days 3650 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment