English 中文(简体)
Redmine connecting to SVN through SSL
原标题:

I am having trouble connecting Redmine to a locally hosted subversion repository using SSL.

I suspect it s the self-signed certificate that usually triggers a warning in the SVN client and browser.

When I try to connect to the local repo through SSL in Redmine, I get a red "Revision not available" error. When I try connecting through svn://, the connection times out, and I have to restart the web server.

Connecting without SSL works without problems.

It would be nice to run subversion on SSL to make it safely accessible from the outside as well. I could run the repository through plain HTTP but would like SSL for outside communication. As far as I understand, subversion can t be run both ways at the same time.

Does anybody know what to do in such a situation? Is there a configuration setting to ignore invalid certificates somewhere?

最佳回答

Looking at the source all redmine does is shell out to the svn binary, see: http://www.redmine.org/projects/redmine/repository/entry/trunk/lib/redmine/scm/adapters/subversion_adapter.rb

So if you can somehow workout how to get the binary to accept your SSL certificate then you will be good.

From http://groups.google.com/group/bitten/browse_thread/thread/d18b21a703c68344?pli=1 it seems you need some manual interaction with svn to accept the cert.

So my suggestion: run svn checkout against your repo as the user running redmine and permanently accept the cert

问题回答

The reason you are getting this message is because the default user under which redmine is running (www-data) calls the “svn” client to communicate with the repositories but the client replies back to it saying that the certificate is untrusted, thus the connection is closed.

Here s a step by step fix: http://haknick.tumblr.com/post/2380507902/redmine-svn-subversion-certificate-issue-ubuntu

since you control both the client and the server, is having the client accept the server certificate s issuing authority an option?

if it isn t a permanent option, at least you d know if it was the problem if you did it temporarily.





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签