Category Archives: Bitbucket

Mercurial Bitbucket Certificate Warning

Bitbucket users who use Mercurial may have been getting this error lately.

warning: certificate with fingerprint 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b not verified (check hostfingerprints or web.cacerts config setting)

I use a MacBook Pro with Mac OS X Maverics. I use both Terminal and SourceTree Mac App by Atlassian to access my Mercurial repositories on Bitbucket. I was getting this error too. Here is how I fixed it on my Mac OS X Maverics.

1. Fire up Terminal on your Mac

2. cd to your home directory(/Users/John)

3. Type sudo vi .hgrc

.hgrc is the file that contains Mercurial settings. All .xyz files are hidden so you don’t see them normally in GUI when you open /Users/John in Finder or use “ls” in Terminal. To view these files, you could use “sudo ls” in Terminal. The command “sudo vi .hgrc” opens(if present)/creates(if absent) the .hgrc file and opens it in Vim Text Editor for editing purpose.

4. Add the following to the .hgrc file that is open in Vim Editor

[hostfingerprints] = 45:ad:ae:1a:cf:0e:73:47:06:07:e0:88:f5:cc:10:e5:fa:1c:f7:99

5. Save the edited file using Vim(save) command

6. Problem solved