Created
November 14, 2014 08:06
-
-
Save chimerast/b6405e972a7686e9b6c4 to your computer and use it in GitHub Desktop.
create SSL key & 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
DOMAIN=example.com | |
openssl req -new -newkey rsa:2048 -nodes -subj "/CN=$DOMAIN" -keyout $DOMAIN.key -out $DOMAIN.csr | |
openssl x509 -req -days 3650 -in $DOMAIN.csr -signkey $DOMAIN.key -out $DOMAIN.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment