Telling subversion client to ignore certificate errors

Posted by Pekka on Server Fault See other posts from Server Fault or by Pekka
Published on 2010-04-11T16:41:23Z Indexed on 2010/04/11 16:43 UTC
Read the original article Hit count: 1913

Filed under:
|
|
|
|

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

© Server Fault or respective owner

Related posts about ruby

Related posts about redmine