Configure Mercurial to accept self-signed certificates

How can we customize mercury to accept self-signed certificates. I created a certificate and assigned it using IIS. I can book my repository through a web browser after accepting a certificate error. But if I use the command line ( ) to get the repository clone, it says that the certificate verification has failed. How can I configure mercurial to accept this certificate?hg clone https://server/hg/repositoryName

+3
source share
2 answers

use the hf.ini section of the host fingerprint, for example

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

I have never tried, but the CA Certificates section is on the Mercurial wiki .

, web.cacerts, hgrc.d\paths.rc.

+1

All Articles