Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 如何避免证书验证问题?_Ssl_Mercurial - Fatal编程技术网

Ssl 如何避免证书验证问题?

Ssl 如何避免证书验证问题?,ssl,mercurial,Ssl,Mercurial,我试图推到Bitbucket Mercurial存储库,但我一直遇到相同的问题: ruihpacheco at descartes in ~/chi/aaa/cpp/ninja (default) $ hg push pushing to https://rhpacheco@bitbucket.org/rhpacheco/databaseclient abort: error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

我试图推到Bitbucket Mercurial存储库,但我一直遇到相同的问题:

ruihpacheco at descartes in ~/chi/aaa/cpp/ninja (default)
$ hg push
pushing to https://rhpacheco@bitbucket.org/rhpacheco/databaseclient
abort: error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

我已经试过了,但似乎不起作用。有什么建议吗?

在您的.hgrc文件中:

[hostsecurity]
bitbucket.org:fingerprints = sha1:3F:D3:C5:17:23:3C:CD:F5:2D:17:76:06:93:7E:EE:97:42:21:14:AA

您是否收到了相同的错误?

从何处获得指纹?是的,这不起作用:中止:bitbucket.org的指纹无效:sh1:3F:D3:C5:17:23:3C:CD:F5:2D:17:76:06:93:7E:EE:97:42:21:14:AA(必须以“sha1:”、“sha256:”或“sha512:”)抱歉,在“sha1”中漏掉了“a”。修复了答案中的指纹。谢谢你的帮助。我从Chrome开发者工具的安全标签上得到了sha256指纹。它是有效的。