Created
March 9, 2011 23:37
-
-
Save teeparham/863250 to your computer and use it in GitHub Desktop.
create self-signed SSL certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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