Go get warning: connecting to bitbucket.org using legacy security technology

When testing a Go application (using Go modules) that uses bitbucket, I get the following error while trying to go get the project:

warning: connecting to bitbucket.org using legacy security technology (TLS 1.0); see https://mercurial-scm.org/wiki/SecureConnections for more info
	(using CA certificates from /etc/ssl/certs/ca-certificates.crt; if you see this message, your Mercurial install is not properly configured; see https://mercurial-scm.org/wiki/SecureConnections for how to configure Mercurial to avoid this message)
	abort: error: _ssl.c:510: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

According to https://www.mercurial-scm.org/wiki/SecureConnections , this means an old version of Python. You are probably using an old distro. Could you link to the build?

1 Like

https://travis-ci.org/poy/kf/builds/527394336

As I thought. Specifying dist:xenial should fix that since it has Python 2.7.11.