Skip to content

Instantly share code, notes, and snippets.

@brand-it
Last active June 26, 2018 22:19
Show Gist options
  • Save brand-it/fe1c257bd8f81f4cc4ad73dddd1ce85e to your computer and use it in GitHub Desktop.
Save brand-it/fe1c257bd8f81f4cc4ad73dddd1ce85e to your computer and use it in GitHub Desktop.
This is a fix for chrome as it turns out that chrome decided to be different
openssl req -newkey rsa:2048 -x509 -nodes -keyout localhost.key -new -out localhost.crt -subj /CN=\*.tb.local.vhost -reqexts SAN -extensions SAN -days 3650 -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:*.tb.local.vhost'))
@brand-it
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment