Redmine subversion won't ignore certificate error even if told
- by Pekka
I have set up a copy of Redmine through the Bitnami Redmine Stack and am having trouble accessing a remote SVN repository through https. The trouble seems to be related to the fact that I don't have a signed certificate, and the certificate provided doesn't match the host name (I am accessing the same server through a number of host names).
I am new to Ruby, Mongrel, Rails and Redmine.
Following the advice in this forum thread, I changed the path Redmine uses to invoke the svn client in \apps\redmine\lib\
redmine\scm\adapters\subversion_adapter.rb from
SVN_BIN = "svn"
to
SVN_BIN = "svn --trust-server-cert --non-interactive --config-dir c:/user/temp"
I was hoping that the --trust-server-cert option would fix the certificate problem. However, I am still getting the following error message in mongrel.log:
svn: OPTIONS of 'https://server.xyz:8443/svn/reponame': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://server.xyz:8443)
Does anybody know what to do about this?
Additional info:
I re-started the mongrel service after each change
I am sure the configuration change has taken effect because subversion has created a full configuration directory in c:\user\temp
I can access the remote repository using command line svn no problem
The remote repository runs on a Windows box with VisualSVN