Configure SSL2010/07/24 |
Configration of SSL |
|
[1] | Create certificates first. See here. |
[2] | Configure for SSL |
root@www05:~# vi /etc/apache2/sites-available/default-ssl # line 3: change to webmaster's email ServerAdmin webmaster@srv.world # line 11,12: change Options FollowSymLinks ExecCGI AllowOverride All # line 51,52: change SSLCertificateFile /etc/ssl/CA/server.crt SSLCertificateKeyFile /etc/ssl/CA/server.key root@www05:~# a2ensite default-ssl Enabling site default-ssl. Run '/etc/init.d/apache2 reload' to activate new configuration! root@www05:~# a2enmod ssl Enabling module ssl. See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates. Run '/etc/init.d/apache2 restart' to activate new configuration! root@www05:~# /etc/init.d/apache2 restart * Restarting web server apache2 ... waiting ...done. |
[3] | Access to the test page with https. Following window is shown because Certification File is made by yourdelf, it's no ploblem, Click Ok to proceed. |
Accessed | |
Install your server's certificate on your PC, then it's possible to access with no error. | |
Install certificate. | |
Sponsored Link |