Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity connection to SVN fails - certificate rejected

Tags:

svn

teamcity

I upgraded to TeamCity 10.0 this morning, and since the upgrade, TC cannot connect to my Subversion server. The error I see is:

Test connection failed in MyProject Error connecting the specified URL: svn: E200015: Server SSL certificate for 'https://svnserver:8443' rejected

There was no issue with the cert prior to upgrading to v10. Is there something I need to do now to allow TC to get to SVN over SSL?

like image 218
witters Avatar asked Jul 22 '16 19:07

witters


2 Answers

TeamCity 10.0 seems to have added an option to 'VCS Root' under 'Subversion Connection Settings' to 'Enable non-trusted SSL certificate'. Checking that option fixed those errors for me.

like image 119
MMD Avatar answered Nov 07 '22 11:11

MMD


I was able to correct this issue by telling SVN on the TeamCity server to accept the certificate permanently. My solution will only work if you are using a Microsoft Windows Operating System and your TeamCity Service is running under a user account for the service rather than a machine account.

If you remotely connect via RDP to your TeamCity server as the user the TeamCity Service is running under and attempt to checkout anything from your SVN server, it should prompt you to ignore the bad certificate or accept the certificate permanently. If you accept it permanently, your TC server immediately no longer throw an error with your SVN roots. Note - I used TortoiseSVN to accomplish the checkout on the TeamCity server.

like image 30
philiplee Avatar answered Nov 07 '22 12:11

philiplee