#!/bin/bash
tar xvfz /root/chillidog_install/apache2-ssl.tar.gz
cp /root/chillidog_install/ssleay.cnf /usr/share/apache2/ssleay.cnf
cp /root/chillidog_install/apache2-ssl-certificate /usr/sbin/apache2-ssl-certificate
mkdir /etc/apache2/ssl
chmod 755 /etc/apache2/ssl
apache2-ssl-certificate -days 720
a2enmod ssl
echo "Listen 443" >> /etc/apache2/ports.conf
cp /root/chillidog_install/ssl /etc/apache2/sites-available/ssl
a2ensite ssl
cd /root
