Skip to content

Instantly share code, notes, and snippets.

@edwardbeckett
Last active August 29, 2015 14:24
Show Gist options
  • Save edwardbeckett/39ca5fca510cdc66df92 to your computer and use it in GitHub Desktop.
Save edwardbeckett/39ca5fca510cdc66df92 to your computer and use it in GitHub Desktop.
Self Signed Cert :: Apache
export OPENSSL_CONF=/c/apache/conf/openssl.cnf
export DAYS=365
export RSA=2048
export DOMAIN=www.example.com
/c/apache/bin/openssl req -x509 -nodes -sha256 -days $DAYS -newkey rsa:$RSA -keyout $DOMAIN.key -out $DOMAIN.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment