Created
June 5, 2017 17:30
-
-
Save cedricvidal/e9afd02047b237969719c25c93b93261 to your computer and use it in GitHub Desktop.
Generates a self signed certificate
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
#!/bin/sh | |
DOMAIN=${1:-localhost} | |
openssl genrsa -out $DOMAIN.key 2048 | |
openssl req -new -x509 -key $DOMAIN.key -out $DOMAIN.cert -days 3650 -subj /CN=$DOMAIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment