Skip to content

Instantly share code, notes, and snippets.

@agungyuliaji
Created November 25, 2017 18:09
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 agungyuliaji/f64a95a2ab63c6cf7564cc977f6fed69 to your computer and use it in GitHub Desktop.
Save agungyuliaji/f64a95a2ab63c6cf7564cc977f6fed69 to your computer and use it in GitHub Desktop.
SSL
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