1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| mkdir /etc/apache2/ssl
cp -r YourDomainName_public.crt /etc/apache2/ssl cp -r YourDomainName_chain.crt /etc/apache2/ssl cp -r YourDomainName.key /etc/apache2/ssl
sudo a2enmod ssl
sudo vim /etc/apache2/sites-available/default-ssl.conf
<IfModules mod_ssl.c> <VirtualHost *:443> ServerName SSLCertificateFile /etc/apache2/ssl/www.YourDomainName_public.crt SSLCertificateKeyFile /etc/ssl/apache2/www.YourDomainName.com.key SSLCertificateChainFile /etc/apache2/ssl/www.YourDomainName.com_chain.crt
sudo /etc/init.d/apache2 force-reload
sudo /etc/init.d/apache2 restart
|