Skip to content

Instantly share code, notes, and snippets.

@kevinquillen
Created January 25, 2019 15:36
Show Gist options
  • Save kevinquillen/2c3accdb2cc5e5564e4c82da1d0bca66 to your computer and use it in GitHub Desktop.
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)
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