Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commit via SVN and Client certificate

Tags:

svn

Is there a way to commit code via SVN without SVN asking for a 'Client certificate filename' all the time?

like image 711
Sam Avatar asked Feb 25 '10 20:02

Sam


1 Answers

At Ubuntu I had to add the following lines at the ~/.subversion/servers file:

[groups]
cacert = hostname
[cacert]
ssl-client-cert-file = /path/to/my/cert.p12
ssl-client-cert-password = somepassword

Without using [groups] and directly having the hostname (eg *.example.com), it did not work for me.

At svn advanced confarea, it states:

The servers file contains Subversion configuration options related to the network layers. There are two special sections in this file—[groups] and [global]. The [groups] section is essentially a cross-reference table. The keys in this section are the names of other sections in the file; their values are globs—textual tokens that possibly contain wildcard characters—that are compared against the hostnames of the machine to which Subversion requests are sent.

When Subversion is used over a network, it attempts to match the name of the server it is trying to reach with a group name under the [groups] section. If a match is made, Subversion then looks for a section in the servers file whose name is the matched group's name. From that section, it reads the actual network configuration settings.

like image 194
Jannes Botis Avatar answered Oct 23 '22 10:10

Jannes Botis