Created
October 13, 2013 04:44
-
-
Save thilinapiy/6958291 to your computer and use it in GitHub Desktop.
Self-signed SSL key generation script for apache webhost.
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 | |
# This script will generate self-signed SSL certificates for a apache webhost. | |
# Use only for testinsg purpos and not recommend for production use. | |
# | |
# Thilina Piyasundara | |
# 2013-08-08 | |
echo "Enter the fqdn : " | |
read fqdn | |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ${fqdn}.key -out ${fqdn}.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment