Skip to content

Instantly share code, notes, and snippets.

@paynecodes
Created April 23, 2018 17:47
Show Gist options
  • Save paynecodes/63259c8e3fc7ffff81faff76cc52d116 to your computer and use it in GitHub Desktop.
Save paynecodes/63259c8e3fc7ffff81faff76cc52d116 to your computer and use it in GitHub Desktop.
Self-Signed Wildcard Certificate
openssl req \
-key example.com.pem\
-x509 \
-nodes \
-new \
-out example.com.crt \
-subj "/CN=*.example.com" \
-reqexts SAN \
-extensions SAN \
-config <(cat /System/Library/OpenSSL/openssl.cnf \
<(printf '[SAN]\nsubjectAltName=DNS:*.example.com')) \
-sha256 \
-days 3650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment