----INSTALLING SSL CERTIFICATE ON APACHE WEB SERVER------- ---- Part 1 : Installing Apache -------------------------- 1. Pre-requisites dpkg -l | grep apache You should get something like ii apache2 2.2.22-1ubuntu1.8 Apache HTTP Server metapackage ii apache2-mpm-worker 2.2.22-1ubuntu1.8 Apache HTTP Server - high speed threaded model If you get no output, install Apache with the command > apt-get install apache2 2. Enabling Mod SSL > sudo a2enmod ssl > sudo restart apache2 ----- Part 2: Copy the 'conf' folder to /etc/apache2------ -------------- Before that rename your SSL certificate --- > cd conf > mv hostXwsnsrcorg.pem hostX.ws.nsrc.org.pem > sudo cp -r /home/sysadm/conf /etc/apache2 ----- Part 3: Create a VirtualHost ----------------------- 2. Create a VirtualHost > vi /etc/apache2/sites-enabled NameVirtualHost *:443 ServerName host0.ws.nsrc.org DocumentRoot /var/www/html/ SSLEngine On SSLCertificateFile /etc/apache2/conf/hostX.ws.nsrc.org.pem SSLCertificateKeyFile /etc/apache2/conf/hostX.ws.nsrc.org.key ErrorLog ${APACHE_LOG_DIR}/ssl.nsrc.error_log CustomLog ${APACHE_LOG_DIR}/ssl.nsrc.access_log combined 3. Reload Apache > sudo reload apache2 4. Launch your broswer and visit https://hostX.ws.nsrc.org