Skip to content

Instantly share code, notes, and snippets.

@inoyakaigor
Last active October 30, 2018 16:17
Show Gist options
  • Save inoyakaigor/da2a48e641898bffd6346852db6df9ea to your computer and use it in GitHub Desktop.
Save inoyakaigor/da2a48e641898bffd6346852db6df9ea to your computer and use it in GitHub Desktop.
nginx certificate for chrome 58+

openssl req -x509 -nodes -new -keyout inoy.rambler.ru.key -out inoy.rambler.ru.crt -subj "/CN=inoy.rambler.ru" -reqexts SAN -extensions SAN -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:inoy.rambler.ru')) -sha256 -days 3650

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