2015-12-02 143 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

相關問題