Created
June 24, 2013 15:02
-
-
Save gibas/5850696 to your computer and use it in GitHub Desktop.
Generation of self signed ssl certificates.
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
#!/bin/sh | |
DOMAIN="domain.example.com" | |
openssl genrsa -des3 -out $DOMAIN-pass.key 2048 | |
openssl rsa -in $DOMAIN-pass.key -out $DOMAIN.key | |
openssl req -new -key $DOMAIN.key -x509 -out $DOMAIN.crt -days 3650 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment