Feature #4269

Allow ca_path option for reposman.rb to validate peer certificate

Added by digi byte about 12 years ago. Updated almost 12 years ago.

Status:NewStart date:2009-11-23
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:

Description

I use the following command for automatic SVN repository creation:

ruby /opt/redmine/extra/svn/reposman.rb --redmine https://localhost/redmine --svn-dir /var/svn --owner www-data --url file:///var/svn/ >> /var/log/redmine-reposman.log

I get this warning twice during the execution:

warning: peer certificate won't be verified in this SSL session

When replacing 'https://localhost/redmine' to 'http://localhost/redmine' the warning disappears. How can the peer certificate be verified (I have a valid certificate, so this must be possible)? Or how can the peer verification be skipped (if redmine is only accessible on https)?

Thank you for looking into this issue.

Regards,
Pieter

History

#1 Updated by Jean-Philippe Lang about 12 years ago

This warning is issued by ruby. A trusted CA cert must be available locally to verify the peer certificate.
But reposman does not currently offer this option.

#2 Updated by Jean-Philippe Lang about 12 years ago

  • Subject changed from Repository management: warning when Redmine is on https to Allow ca_path option for reposman.rb to validate peer certificate
  • Priority changed from Normal to Low

#3 Updated by Jean-Philippe Lang about 12 years ago

  • Tracker changed from Defect to Feature

#4 Updated by digi byte almost 12 years ago

I solved my problem by creating a new file: redmine/extra/svn/soap/property
This is the content of the property file:

client.protocol.http.ssl_config.ca_file=/etc/apache2/ssl/ca.pem

Where you can of course change the path to the corresponding CA certificate.
I also had to execute this command to add SSL support: gem install httpclient
I hope this can be interesting for other people using Redmine. Issue can be closed for me.

Regards,
Pieter

Also available in: Atom PDF