Created
November 25, 2017 18:09
-
-
Save agungyuliaji/f64a95a2ab63c6cf7564cc977f6fed69 to your computer and use it in GitHub Desktop.
SSL
This file contains hidden or 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 \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout localsite.key \ | |
-new \ | |
-out localsite.crt \ | |
-subj /CN=\*.localsite.dev \ | |
-reqexts SAN \ | |
-extensions SAN \ | |
-config <(cat /System/Library/OpenSSL/openssl.cnf \ | |
<(printf '[SAN]\nsubjectAltName=DNS:\*.localsite.dev')) \ | |
-sha256 \ | |
-days 3650 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment