How to add a certificate to Mercurial

certificatesmercurial

I use Arch Linux, when I want to clone a project from bitbucket with mercurial I get this error:

warning: bitbucket.org certificate with fingerprint 24:...:3b
    not verified (check hostfingerprints or web.cacerts config setting)
searching for changes
  • how can I fix this?
  • how can I add this certificate to my shell?
  • is there a pack of certificate to install? like the default certificate bundle that comes with Firefox?

Best Answer

You need to add certificate to fix this issue. As described in mercurial wiki you can add it in your configuration file /etc/mercurial/hgrc:

[web]
cacerts = /etc/ssl/certs/ca-certificates.crt

Also you can check the way with fingerprints.

Related Question