Skip to content

Instantly share code, notes, and snippets.

@lukebussey
Created March 16, 2018 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebussey/5964996b2fe4575079ab54ddf613a6b6 to your computer and use it in GitHub Desktop.
Save lukebussey/5964996b2fe4575079ab54ddf613a6b6 to your computer and use it in GitHub Desktop.
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt -reqexts SAN -extensions SAN \
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:*.local'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment