Created
January 2, 2014 12:36
-
-
Save agungf/8218603 to your computer and use it in GitHub Desktop.
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
Generating CSR | |
============== | |
openssl genrsa -des3 -out server.key 2048 | |
openssl rsa -in server.key -out server.key.insecure | |
mv server.key server.key.secure | |
mv server.key.insecure server.key | |
openssl req -new -key server.key -out server.csr | |
install on apache | |
================ | |
a2enmod ssl | |
service apache2 reload | |
mkdir /etc/apache2/ssl | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt | |
vi /etc/apache2/sites-available/default-ssl | |
Add a line with your server name right below the Server Admin email: | |
ServerName example.com:443 | |
Find the following three lines, and make sure that they match the extensions below: | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/apache.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/apache.ke |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment