由于TLS,Mercurial在Bitbucket上出现SSL错误 [英] Getting an SSL error with Mercurial on Bitbucket due to TLS
问题描述
Bitbucket似乎已经阻止了TLS 1.0和1.1.
It seems that Bitbucket has now blocked TLS 1.0 and 1.1.
我正在使用MercurialEclipse(hg)2.2插件在Mac OSx 10.12.6上的Eclipse中工作.
I am working in Eclipse on Mac OSx 10.12.6 using the MercurialEclipse (hg) 2.2 plugin.
每当我尝试从远程Bitbucket存储库中提取信息时,我都会收到SSL握手错误.
I was receiving SSL handshake errors whenever I tried to pull from the remote Bitbucket repository.
我尝试更新插件并进行全新安装,但仍然出现相同的错误.
I tried updating the plugin and doing a fresh install, but it still gave the same error.
然后,我尝试从Merurial网站上下载并安装最新的Mercurial软件包(4.8).
Then I tried downloading and installing the latest Mercurial package (4.8) from the mercurial web site.
执行此操作后,错误更改为:
After doing this the error changed to this:
警告:使用旧版安全技术连接到bitbucket.org (TLS 1.0);请参阅 https://mercurial-scm.org/wiki/SecureConnections 更多信息中止:错误:[SSL:WRONG_VERSION_NUMBER]版本错误 号码(_ssl.c:590)
warning: connecting to bitbucket.org using legacy security technology (TLS 1.0); see https://mercurial-scm.org/wiki/SecureConnections for more info abort: error: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:590)
我尝试下载最新版本的Python(3.7.1和2.7.15),因为我在Mercurial的网站上看到链接,警告说它与Python的OpenSSL实现有关,但仍然出现相同的错误.
I tried downloading the latest Python, both 3.7.1 and 2.7.15 as I read on Mercurial's site linked in the warning that that it had something to do with Python's OpenSSL implementation, but I still get the same error.
关于如何通过TLS 1.2使Mercurial与Bitbucket一起使用的任何建议?
Any suggestions on how I can get Mercurial to work with Bitbucket via TLS 1.2?
推荐答案
我使用的是Mac OS X 10.12"Sierra".我将其更新为10.13"High Sierra",它解决了该问题.
I was on Mac OS X 10.12 "Sierra". I updated to 10.13 "High Sierra" and it fixed the issue.
值得注意的是...当我现在运行openssl version
时,我得到:LibreSSL 2.2.7
.在10.12之前,我得到了:OpenSSL 0.9.8zh 14 Jan 2016
.
Notably... when I run openssl version
now, I get: LibreSSL 2.2.7
. Where as before on 10.12 I got: OpenSSL 0.9.8zh 14 Jan 2016
.
这篇关于由于TLS,Mercurial在Bitbucket上出现SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!