You are hereBlogs / hutcho's blog / Installing SSL on a VPN

Installing SSL on a VPN


By hutcho - Posted on 31 October 2009

This link might be handy (posters seem to think so). I'll expand on this blog entry once I've tried it.

Extracted from link below:
++++++++++++++++++++++++++++++
A Mini-Howto for apache2: :)

apt-get install apache2
apache2-ssl-certificate
(and answer the questions)

Now, enable ssl:
a2enmod ssl

configure ssl:
cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/ssl
"/etc/apache2/sites-enabled/ssl" should look like this:

NameVirtualHost *:443

(... configure the directories too...)
and "/etc/apache2/sites-enabled/default" should look like this:

NameVirtualHost *:80

(... configure the directories too...)
In /etc/apache2/ports.conf, add Listen 443

In the middle of /etc/apache2/sites-available/ssl file, insert this two lines:

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
++++++++++++++++++++++++++++++

References:
http://ubuntuforums.org/archive/index.php/t-4466.html