4

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?
Chris Down
  • 122,090
  • 24
  • 265
  • 262
Mohammad Efazati
  • 792
  • 8
  • 16

2 Answers2

6

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.

rush
  • 27,055
  • 7
  • 87
  • 112
0

Your code server might have an updated certificate, in which case you can just go into the ~/.hgrc file and delete the following to force it to check for updates:

[hostfingerprints]
<code server> = aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa:aa
HalosGhost
  • 4,732
  • 10
  • 33
  • 41
Mike
  • 1
  • 1