Created
February 1, 2018 13:14
-
-
Save gotoashishgupta/6e11f5f5b9fd8a3c3d45f1289606c15d to your computer and use it in GitHub Desktop.
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/bash | |
echo "Generating self-signed certificates... in dir $(pwd)/config" | |
openssl genrsa -out ./config/sslcerts/key.pem -aes256 1024 | |
openssl req -new -key ./config/sslcerts/key.pem -out ./config/sslcerts/csr.pem | |
openssl x509 -req -days 9999 -in ./config/sslcerts/csr.pem -signkey ./config/sslcerts/key.pem -out ./config/sslcerts/cert.pem | |
rm ./config/sslcerts/csr.pem | |
chmod 600 ./config/sslcerts/key.pem ./config/sslcerts/cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment