Skip to content

Instantly share code, notes, and snippets.

@thilinapiy
Created October 13, 2013 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thilinapiy/6958291 to your computer and use it in GitHub Desktop.
Save thilinapiy/6958291 to your computer and use it in GitHub Desktop.
Self-signed SSL key generation script for apache webhost.
#!/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