I'm trying to setup an SSL SVN. I got a tutorial, but when I'm trying to run the following command apache2-ssl-certificate I'm getting a command not found error message. My question is how can I fix this problem?
This will create a SSL cert that expires in 365 days. To adjust the lifetime just change the -days 365 argument.
Make sure that /etc/apache2/ports.conf contains something like:
<IfModule mod_ssl.c>
Listen 443
</IfModule>
Assuming you still enabled SSL (sudo a2enmod ssl) you need to create a new virtual host. For example create a file /etc/apache2/sites-available/svn, containing among others:
This is due to bug #77675. A solution is mentioned in the comments. I have not tried it myself so I don't know if it's correct. Anyway the solution should be to do the following:
The tutorial you've found is unfortunately very old. To generate a SSL cert run the following:
This will create a SSL cert that expires in 365 days. To adjust the lifetime just change the
-days 365
argument.Make sure that
/etc/apache2/ports.conf
contains something like:Assuming you still enabled SSL (
sudo a2enmod ssl
) you need to create a new virtual host. For example create a file/etc/apache2/sites-available/svn
, containing among others:and enable this site with
sudo a2ensite svn
. So you have a site that listens for SSL connection. I hope this helps.This is due to bug #77675. A solution is mentioned in the comments. I have not tried it myself so I don't know if it's correct. Anyway the solution should be to do the following: