Testing connection to Mercurial over https

I get the following error when testing the connection to our Mercurial Repository over https:

teamcity-hg-error.PNG
The text displayed in this modal window is:

'"C:\Program Files (x86)\TortoiseHg\hg.exe" identify https://teamcity:*****@ourserver.com/ourproject' command failed.
stderr: warning: ourserver.com certificate with fingerprint 2e:98:07:69:3f:41:e2:b6:bb:21:5b:d9:b4:14:df:62:59:6c:49:89 not verified (check hostfingerprints or web.cacerts config setting)
warning: ourserver.com certificate with fingerprint 2e:98:07:69:3f:41:e2:b6:bb:21:5b:d9:b4:14:df:62:59:6c:49:89 not verified (check hostfingerprints or web.cacerts config setting)
warning: ourserver.com certificate with fingerprint 2e:98:07:69:3f:41:e2:b6:bb:21:5b:d9:b4:14:df:62:59:6c:49:89 not verified (check hostfingerprints or web.cacerts config setting)
warning: ourserver.com certificate with fingerprint 2e:98:07:69:3f:41:e2:b6:bb:21:5b:d9:b4:14:df:62:59:6c:49:89 not verified (check hostfingerprints or web.cacerts config setting)

stdout: c5decbaabde5


Our Mercurial server is using a self-signed cert which we have not added a certficate authority for. Our workaround for not having the CA was to add this to the Mercurial.ini:

[web]
cacerts =


This has been working fine as far as access to the hg server from the command line and through a browser for all our developers. I can run the same command as shown in the screenshot above from the command line on our TeamCity server. I can also successfully pull/push from the command line from our TeamCity server (using the same hg account TeamCity is configured to use).

Attached is an excerpt from the end of the teamcity-vcs.log file. Has anyone else experienced similar problems?

Attachment(s):
teamcity-vcs.log.zip
2 comments
Comment actions Permalink

Hi,

I've experienced the same problem. Have you had any luck to solve it?

0
Comment actions Permalink

Fixed the problem in Mercurial by specifying a self-signed certificate in Mercurial.ini
http://mercurial.selenic.com/wiki/CACertificates#Self-signed_certificates

0

Please sign in to leave a comment.