Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created June 11, 2009 17:51
Show Gist options
  • Save edavis10/128113 to your computer and use it in GitHub Desktop.
Save edavis10/128113 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Openssl script to regenerate the Apache2 cert in place of apache2-ssl-certificate
echo "Use your url for the Common Name (CN)"
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment