Last active
January 7, 2018 16:11
-
-
Save pereirinha/827da56bc35d27d08e7deddcb8228763 to your computer and use it in GitHub Desktop.
Local 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 \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout ssl/domain.com.key \ | |
-new \ | |
-out ssl/domain.com.crt \ | |
-subj /CN=domain.com \ | |
-reqexts SAN \ | |
-extensions SAN \ | |
-config <(cat /etc/ssl/openssl.cnf \ | |
<(printf '[SAN]\nsubjectAltName=DNS:domain.com')) \ | |
-sha256 \ | |
-days 3650 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment