Project

General

Profile

Using a private key with SVN

Added by Samuel ROZE over 14 years ago

Hi,

Can somebody tell me how I can use a private key for SVN authenfication ?
I've tried to modify lib/redmine/scm/adapters/subversion_adapter.rb to have:

SVN_BIN = "svn -i /my/private.key" 

But I have:

Processing RepositoriesController#show (for 82.65.49.8 at 2009-08-20 01:52:07) [GET]
  Session ID: ebe65de4c9d0f3df55da7e814fabdb55
  Parameters: {"action"=>"show", "id"=>"librairies", "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 0.22859 (4 reqs/sec) | Rendering: 0.04183 (18%) | DB: 0.01377 (6%) | 500 Internal Server Error [http://xxxx.com/repositories/show/librairies]

Can you help me ?


Replies (1)

RE: Using a private key with SVN - Added by CS Wong over 14 years ago

Hi,

I'm not sure if I understand you correctly, but I'm assuming that your SVN server is set up to be authenticated using private SSL certs and you need to get Redmine to authenticate to the SVN server using an SSL cert. I'm doing exactly that in my setup.

I run Redmine on a Linux server. All I did was to:

  1. Setup a user
  2. Make sure SVN was installed
  3. Copy over a working SSL P12 package into the server
  4. Setup $HOME/.subversion/servers config file such that I can connect to my SVN server from the command line (so all the configuration for SSL certs etc goes into the $HOME/.subversion/servers file.
  5. Setup web server / Redmine to run as that same user I had just setup

The key assumption is that when Redmine invokes the svn command, it would run using the same environment variables as if I was running the svn command from the command line.

Hope this helps,
Wong

    (1-1/1)