繁体   English   中英

Redmine 2.3.2 SVN HTTPS服务器SSL证书不受信任

[英]Redmine 2.3.2 svn HTTPs Server SSL certificate untrusted

我进行了以下配置:

  1. 在Centos 6.4中,我安装了redmine 2.3.2,apache2乘客模块和SVN 1.7.11。 我配置为在Apache上运行redmine,到目前为止,一切正常。

  2. 在Windows Server 2008中,我安装了与SVN 1.7兼容的VisualSVN Server。 到目前为止,一切工作正常。

  3. 当我尝试将Windows服务器上安装的svn与Redmine安装的Centos集成时出现问题,出现错误:

    SVN:E230001:无法在URL连接到存储库“ https://xxx.xxx.x.xxx/svn/myrepo

    svn:E230001:服务器SSL证书不受信任

我已经永久接受了证书到/ var / www / svn文件夹

我在永久设置文件/ var / www / redmine / lib / redmine / scm / adapters / subversion_adapter.rb中指向证书

def credentials_string
 str =''
 str << "- config-dir /var/www/svn - username # {shell_quote (@ login)}" unless@login.blank?
 str << "- password # {shell_quote (@ password)}" unless@login.blank? | | @ Password.blank?
 str << "- trust-server-cert - no-auth-cache - non-interactive"
 str 
end

并且点击选项卡redmine的时间得到了上面的例外。

我该如何解决这个问题? 任何想法?

经过几次测试后,我发现问题出在apache上,即通过使用ruby script / rails server命令运行3000,webrick-e生产正常运行,但是当由apache运行时会出现上述错误。 如何在Apache中修复它?

问题解决了。 进行了以下设置

  1. 文件/var/www/redmine/lib/redmine/scm/adapters/subversion_adapter.rb

     def credentials_string str = '' str << " --username #{shell_quote(@login)}" unless @login.blank? str << " --password #{shell_quote(@password)}" unless @login.blank? || @password.blank? str << " --no-auth-cache --non-interactive --config-dir /tmp/subversion_config" str end 
  2. 并永久接受证书,所以我这样做了:

    svn ls --config-dir / tmp / subversion_config --config-option config:auth:store-auth-creds = yes https://xxx.xxx.x.xxx/svn/myrepo/

  3. 添加了权限文件夹:

    chown-R apache:apache / tmp / subversion_config

  4. 参考文献:

    http://www.redmine.org/projects/redmine/wiki/Redmine_203_with_Subversion_and_LDAP_Authentication_(for_Redmine_and_Subversion_through_Redmine)_on_Centos_6_i386_-_detailed

    http://www.redmine.org/issues/787

确保VisualSVN服务器上的证书与它的主机名匹配(区分大小写)! --trust-server-cert将被视为不安全,因此不会自动接受主机名不匹配的证书。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM