【问题标题】:Subversion post commit hook SSL certificate error 'certificate issued for different hostname'Subversion post commit hook SSL证书错误'为不同主机名颁发的证书'
【发布时间】:2014-08-31 10:42:03
【问题描述】:

我已经使用 Windows Azure (SLAVE) 在一个新的虚拟机中设置了 VisualSVN。我已经从我们的内部服务器 (MASTER) 手动将现有存储库复制到它,并且我可以使用 TortoiseSVN 在我的客户端计算机 (CLIENT) 上看到这两个存储库。

从 CLIENT 访问 MASTER 使用

svn://MASTER/repo....

当使用

访问 SLAVE 时
https://SLAVE.cloudapp.net:8443/svn/repo....

我已经更新了我们内部服务器(MASTER,运行 Collabnet Edge)上的 post commit hook,以同步到 Azure 服务器(SLAVE 运行 VisualSVN)。当我第一次使用远程桌面从我们的内部服务器 MASTER 中运行此同步批处理文件时,它提示我出现证书错误以“(R)弹出,暂时接受(t)...等”,我选择了“p”(永久) .从此时起,使用远程桌面在 MASTER 上运行时,所有同步操作都正常。

虽然从我的客户端计算机 CLIENT 执行提交时,这会像往常一样更新 MASTER 上的 repo,但随后我收到一个 TortoiseSVN 错误显示:

Error validating server certificate for
 'https://myserver.cloubapp.net:8443'
 - This certificate is not issued by a trusted authority....
 The certificate hostname does not match...
svnsync:E175002 OPTIONS of 
'https://myserver.cloubapp.net:8443/svn/myrepo' 
server certificate verification failed: certificate
 issued for a different hostname, issuer is not trusted
 (https://myserver.cloudapp.net:8443)

当 MASTER 尝试与 SLAVE 上的 VisualSVN 通信时,我认为此错误是 SSL 错误。因此,我使用 VisualSVN 在 MASTER 上导出证书并将其导入 CLIENT,将其放入“受信任的根证书颁发机构”,但这并没有阻止错误。

我也试过添加:

--trust-server-cert --non-interactive

到我的钩子中的 svnsync 行,但我仍然得到

....certificate issued for a different hostname, issuer is not trusted ....

我查看了this SO question,这似乎可能相关,但我对这个证书的东西非常薄弱。谁能指出我正确的方向?感激地收到任何帮助。

【问题讨论】:

    标签: svn azure ssl visualsvn


    【解决方案1】:

    我正在使用 VisualSVN Server 3.5.4 并发现了类似的问题,但对我来说,提交更改时它会在 CLIENT 上引发以下错误

    svnsync: E230001: Server SSL certificate verification failed: certificate has expired
    

    这是我的商业证书已过期。我通过

    解决了
    create a new self-signed certificate on SLAVE's VisualSVN Certificate setting
    *the Common name must matches your SLAVE domain name
    

    并添加到 MASTER

    --trust-server-cert --non-interactive
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-18
      • 2011-12-26
      • 2019-08-04
      • 2018-06-19
      • 2016-07-06
      相关资源
      最近更新 更多