Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Self-signed SSL key generation script for apache webhost.
# 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