Accessing a subversion repository via https

anarchman - September 16, 2009 - 22:53
Project:Version Control API -- Subversion backend
Version:6.x-1.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Error: The repository at https://example.edu/svn/ could not be accessed. Error message from 'svn info':
The filename, directory name, or volume label syntax is incorrect.

To reproduce this just try to connect to a repository using https.

I think the problem is that the --non-interactive optios precludes the ability to accept a certificate? Anyways, has anyone else managed to successfully use this module with an https repository?

If this module is not meant to support https then please say so in the documentation and change this to a feature request or won't fix. Thanks.

#1

shrop - September 26, 2009 - 13:59

I was able to connect to https by adding below to versioncontrol_svn/svnlib/configdir/servers. This will prevent subversion from asking to accept ssl certs which aren't a big deal when you are working with CLI interactively.

[global]
ssl-authority-files = /path/to/cert/cert.pem;/path/to/cert/cer2.pem; etc

Make sure that the certs are pem versions of the certs. I am on OS X and just open the certs in Safari and drag + option-click the cert to my system. This converts them to pem format. You can also Google how to do this via openssl.

Also, I added my cert, intermediate cert and CA cert just to be safe.

Hope that helps your issue.

#2

anarchman - September 29, 2009 - 18:47

Thanks I will test this out when I have some more time and come back to it in a couple days.

 
 

Drupal is a registered trademark of Dries Buytaert.