开发者

Configure Mercurial To Accept Self signed Certificates

How can we configure mercurial to accept self signed certificates . I have created a certificate and assigned it using IIS开发者_StackOverflow. I can brows my repository through a web browser after accepting the certificate error. But if I use command line (hg clone https://server/hg/repositoryName) to get a clone of the repository it says In Certificate verification failed. How can I configure mercurial to accept that certificate ?


use hostfingerprints hg.ini section, e.g.

[hostfingerprints]
hg.example.com = 2f:47:d5:d4:c8:28:34:b2:65:15:9b:15:ad:1e:11:b1:9e:8d:bb:cc


I've never tried it, but on the Mercurial wiki is a section on CA Certificates.

It appears that you need to add a reference to your certificate file in the main web.cacerts file, which is referenced from hgrc.d\paths.rc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜