Note: This page is known to be outdated.

Based on a howto attached to 267477:

  1. Have apache working without SSL (apt-get install apache2)

  2. If not present, add Listen 443 to /etc/apache2/ports.conf

  3. As root, enable apache2's ssl module:

    a2enmod ssl
  4. create a SSL certificate

  5. create a config file

    cp /etc/apache2/sites-available/default /etc/apache2/sites-available/myown-ssl
  6. Edit /etc/apache2/sites-available/myown-ssl :

    • Change NameVirtualHost "" to NameVirtualHost :443

    • Change <VirtualHost ""> to <VirtualHost :443>

    • Add this just before </VirtualHost>:

      SSLEngine on
      SSLCertificateFile /etc/apache2/ssl/apache.pem
      SSLProtocol all
      SSLCipherSuite HIGH:MEDIUM
  7. execute a2ensite myown-ssl

  8. execute /etc/init.d/apache2 restart

  9. install libapache2-svn and followed comments in /etc/apache2/mods-available/dav_svn.conf:

    gvim /etc/apache2/mods-available/dav_svn.conf
    /etc/init.d/apache2 restart
    svnadmin create /var/lib/svn
    chown -R www-data:www-data /var/lib/svn
    chmod -R g+ws /var/lib/svn
    htpasswd2 -c /etc/apache2/dav_svn.passwd svnuser
    svn import .bashrc https://localhost/svn/testfile -mlogentry

Result: works like a charm with SSL and Auth, Firefox can browse trough the repository as well.

Many thanks to Subversions packagers.