Created
April 23, 2018 17:47
-
-
Save paynecodes/63259c8e3fc7ffff81faff76cc52d116 to your computer and use it in GitHub Desktop.
Self-Signed Wildcard Certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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