Skip to content

Instantly share code, notes, and snippets.

@robwilkerson
Last active December 17, 2015 14:59
Show Gist options
  • Save robwilkerson/5628585 to your computer and use it in GitHub Desktop.
Save robwilkerson/5628585 to your computer and use it in GitHub Desktop.
Generates a self-signed SSL certificate. #bash #ssl
# Generate a self-signed certificate
echo -n "Generating a self-signed SSL cert..."
openssl req -new -x509 -days 365 -subj "/C=US/ST=MD/L=Baltimore/O=Rob Wilkerson Consulting, LLC/CN=*.MYDOMAIN.COM" -nodes -out /etc/ssl/certs/wildcard-cert.pem -keyout /etc/ssl/private/wildcard-cert.key
echo "complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment