The certificate behind https://bitbucket.org is up for renewal. We’re planning to switch to our new TLS certificates – one RSA, one ECDSA – at around 00:05 UTC on Friday, 27 April 2018. (SSH traffic will not be affected by this.)
What does this mean? After we deploy our new certificates, some Mercurial users who connect over HTTPS may see a warning or error message about “unexpected fingerprint” or “certificate not verified”. If you see a message like that, check if the error message matches the new fingerprints below:
If it does match, then you can pin that fingerprint in your ~/.hgrc or Mercurial.ini as follows:
Mercurial versions <=3.8:
[hostfingerprints] bitbucket.org = FINGERPRINT_HERE
Mercurial versions >= 3.9:
[hostsecurity] bitbucket.org:fingerprints = FINGERPRINT_HERE
(adding the actual fingerprint in place of “FINGERPRINT_HERE”, of course.)
If you’re using Python 2.7.9 or later, then you may be able to remove the fingerprint from ~/.hgrc or Mercurial.ini entirely. Please see https://www.mercurial-scm.org/wiki/SecureConnections for more information.
Most users should not notice a difference once we make the switch – your system will use ECDSA if it can, and RSA otherwise, and your system will verify the certificates as it needs to. We’ve been running dual RSA and ECDSA certificates on all bitbucket.io hosted pages and on api.bitbucket.org since June 2017, and it has not caused any support tickets, monitoring failures, or tweets.