2015-12-02 256 views
0

巡航控制系统出现以下错误。这已在许多论坛中讨论过,无法找到解决方案。巡航控制例外:服务器SSL证书验证失败:为其他主机名颁发证书,颁发者不受信任

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

感谢您的帮助!

回答

2

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

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

+0

嗨,感谢您的评论。我已将IP地址更改为主机名。现在我收到类似的错误,但有点不同。 ThoughtWorks.CruiseControl.Core.CruiseControlException:源代码管理操作失败:svn:E230001:无法连接到存储库URL'https://hostname.com:11/svn/SOURCE' svn:E230001:服务器SSL证书验证失败:发行人不可信 –

+0

现在您已解决了名称问题,您还必须解决信任问题。您用于SVN服务器的SSL证书不是由您的巡航控制服务器默认信任的实体颁发的。如果您希望ssl正常工作,则必须在Cruisecontrol服务器上将证书的颁发者添加为受信任的证书,或者在您的svn服务器上使用不同的证书,该证书来自默认情况下已受信任的颁发机构。 – ioscode

相关问题