Home Linux ServerWare Apache
Generate certificate

mkdir /etc/apache2/ssl
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem
chmod 600 /etc/apache2/ssl/apache.pem


Add to vhost

SSLCertificateFile    /etc/apache2/ssl/apache.pem