SVN SSL握手错误

我试图用Cornerstone SVN客户端访问我自己的SVN服务器。 我收到以下错误信息:

说明:无法联系“https:/[email protected]:443”存储库,因为无法build立SSL会话。 build议:此Mac无法提供有效的证书或服务器证书被拒绝为无效。
技术信息

Error : V4SSLHandshakeFailureError \ Exception : ZSVNSSLHandshakeFailureException 

因果信息

说明:无法连接到URL为“https:/[email protected]/svn/robi”的存储库状态:175002

说明:“https:/[email protected]/svn/robi”的选项:SSL握手失败:SSL错误代码-1/1/336032856(https:/bar.mooo.info)状态:175002

我想我通过使用searchfunctionfind了解决scheme。 在apache.org或serverfault( SVN SSL协商失败 )上描述。

当服务器报告的主机名不符合SSL证书中给出的匹配主机名称时,可能会发生这种情况。 确保您的服务器configuration为ServerName和NameVirtualHost使用正确的值。

由于困难,我不能实施它有两个原因。

A)我不知道在哪里编辑ServerName和NameVirtualHost(httpd.conf不在apache2中)
B)我不知道我要添加哪个名字,设置:
主机名:friedrich(在内部networking中)DDNS名称:bar.mooo.info(在SVN客户端input)

操作系统:Debian GNU / Linux wheezy / sid(3.2.0-4-amd64)
Apache版本:服务器版本:Apache / 2.2.22(Debian)

更多/etc/apache2/sites-available/ssl.conf:

[…]

  <Location /svn> DAV svn SVNParentPath /srv/nas/hd0/svn # this line must be added if you want SSL enabled SSLRequireSSL </Location> 

[…]

  SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key 

尝试使用以下方式debugging

 echo -e "GET / HTTP/1.0\n\n"|openssl s_client -connect bar.mooo.info:443 

如果正在工作,则显示证书:

 echo ""|openssl s_client -connect bar.mooo.info:443|openssl x509 -text -noout 

检查Subject:包含CN=bar.mooo.info检查date是否正确,客户端时间是否同步。 检查您的客户端是否信任该证书:

  • validation用于签署主机证书的根证书位于信任密钥库中
  • validation根证书是否有效且未过期。