Created
October 20, 2017 20:58
-
-
Save aelindeman/42680c0fb5e18a71e84125854b084220 to your computer and use it in GitHub Desktop.
quickly generate a dhparam and self-signed ssl 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
#!/bin/sh | |
echo 'generating dh param' | |
openssl dhparam -out dhparam 4096 | |
echo 'generating ssl certificate and key' | |
openssl req -x509 -nodes \ | |
-newkey rsa:4096 -keyout key \ | |
-out cert -sha256 \ | |
-days 1461 \ # 4 years | |
-subj '/CN=localhost' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment