Cruise Control异常:服务器SSL证书验证失败:为不同的主机名颁发证书,颁发者不受信任

时间:2015-12-02 11:04:31

标签: svn cruisecontrol

我在Cruise Control上遇到以下错误。这已在许多论坛中讨论过,无法找到解决方案。

ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: E230001: Unable to connect to a repository at URL 'https://101.17.12.47:11/svn/SOURCE'
svn: E230001: Server SSL certificate verification failed: certificate issued for a different hostname, issuer is not trusted
. Process command: C:\Program Files\TortoiseSVN\bin\svn.exe log https://101.17.12.47:11/svn/SOURCE -r "{2015-12-02T10:55:27Z}:{2015-12-02T10:55:33Z}" --verbose --xml --username dev03 --password ******** --no-auth-cache --non-interactive
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Svn.GetModifications(IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
   at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

我尝试过以下解决方案: svn command line error "Server certificate verification failed: issuer is not trusted" how can i resolve this error?

使用巡航控制使用的帐户登录托管CruiseControl.Net的服务器。打开命令提示符并键入:svn list https://。当系统提示您接受认证例外时,请永久键入p

感谢您的帮助!

1 个答案:

答案 0 :(得分:2)

您应该能够通过使用SVN服务器的主机名而不是IP地址来避免此错误。要确保使用SSL证书上发布的确切名称,您可能希望使用Web浏览器浏览到https://101.17.12.47:11/svn/SOURCE,然后单击SSL链接以查看证书并查看颁发给它的主机名。

然后你应该在巡航控制配置中更新你的svn url以使用主机名而不是101.17.12.47。根据SSL证书的状态,您可能仍会遇到其他错误。

相关问题