Menü schliessen
Created: April 3rd 2014
Last updated: May 1st 2020
Categories: Redmine
Author: Marcus Fleuti

Redmine subversion repository does not connect to https repository server that uses a self-signed certificate

Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

Fixing broken redmine svn/subversion configuration which does not allow connecting to a repository through https using a self signed certificate:

Find out and properly set the correct path of your svn command:

Edit the file <redmine_dir>/config/configuration.yml

Enter the command

whereis svn

--> It will return something like /usr/bin/svn

Modify the following parameter within configuration.yml:

scm_subversion_command: /path/to/svn/command

Navigate to the following directory:

YourRedminePath/lib/redmine/scm/adapters/

Edit the file

subversion_adapter.rb

and change the line

str << " --no-auth-cache --non-interactive"

to:

str << " --no-auth-cache --trust-server-cert --non-interactive"

Restart Apache / Redmine (might differ on your kind of installation, this is an example)

/etc/init.d/apache2 restart