Skip to content

Instantly share code, notes, and snippets.

@teeparham
Created March 9, 2011 23:37
Show Gist options
  • Save teeparham/863250 to your computer and use it in GitHub Desktop.
Save teeparham/863250 to your computer and use it in GitHub Desktop.
create self-signed SSL certificate
openssl genrsa -out yoursite.key 1024
openssl req -new -key yoursite.key -out yoursite.csr
openssl x509 -req -days 2000 -in yoursite.csr -signkey yoursite.key -out yoursite.crt
sudo cp yoursite.crt /etc/ssl/certs/
sudo cp yoursite.key /etc/ssl/private/
# Apache
a2enmod ssl headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment