git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git https and github
@ 2018-04-25  0:32 Lev
  2018-04-25 17:44 ` Beat Bolli
  0 siblings, 1 reply; 2+ messages in thread
From: Lev @ 2018-04-25  0:32 UTC (permalink / raw)
  To: git

Hi list,


I'm struggling with git connecting to Github.

The problem might be SSL/TLS related.

https://githubengineering.com/crypto-removal-notice/

I suspect that my setup still uses tlsv1 or tlsv1.1.

I've tried to explicitly set git to use tlsv1.2 in my .gitconfig file
like this:

[http]
	sslVersion = tlsv1.2

I've tried to re-compile git with OpenSSL and GnuTLS. All give the
same error.

git clone https://github.com/OnionIoT/source.git
Cloning into 'source'...
* Couldn't find host github.com in the .netrc file; using defaults
*   Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection:
ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
version
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
fatal: unable to access 'https://github.com/OnionIoT/source.git/':
error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
version lev@jive:~/git$ unset GIT_SSL_VERSION lev@jive:~/git$ git clone
https://github.com/OnionIoT/source.git Cloning into 'source'...
* Couldn't find host github.com in the .netrc file; using defaults
*   Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection:
ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
version
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
fatal: unable to access 'https://github.com/OnionIoT/source.git/':
error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version


I can connect to other git servers without any error. This is a debian
stable system with the following components:

	git version 2.11.0

	libcurl 7.52.1

	OpenSSL 1.0.2l


Is there any way to know what is the exact protocol used? Are there any
workaround, fix for this issue?

Any help welcome. Thank you,
Levente

-- 
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git https and github
  2018-04-25  0:32 git https and github Lev
@ 2018-04-25 17:44 ` Beat Bolli
  0 siblings, 0 replies; 2+ messages in thread
From: Beat Bolli @ 2018-04-25 17:44 UTC (permalink / raw)
  To: git

On 25.04.18 02:32, Lev wrote:
> Hi list,
> 
> 
> I'm struggling with git connecting to Github.
> 
> The problem might be SSL/TLS related.
> 
> https://githubengineering.com/crypto-removal-notice/
> 
> I suspect that my setup still uses tlsv1 or tlsv1.1.
> 
> I've tried to explicitly set git to use tlsv1.2 in my .gitconfig file
> like this:
> 
> [http]
> 	sslVersion = tlsv1.2

This is the default, so this setting should not be needed, unless it's
overridden in some higher prioritized git config file. Have you tried

    git -c http.sslVersion=tlsv1.2 clone <URL>

? This should override any settings files.

> I've tried to re-compile git with OpenSSL and GnuTLS. All give the
> same error.
> 
> git clone https://github.com/OnionIoT/source.git
> Cloning into 'source'...
> * Couldn't find host github.com in the .netrc file; using defaults
> *   Trying 192.30.253.112...
> * TCP_NODELAY set
> * Connected to github.com (192.30.253.112) port 443 (#0)
> * ALPN, offering http/1.1
> * Cipher selection:
> ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
> * successfully set certificate verify locations:
> *   CAfile: /etc/ssl/certs/ca-certificates.crt
>   CApath: /etc/ssl/certs
> * error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
> version
> * Curl_http_done: called premature == 1
> * stopped the pause stream!
> * Closing connection 0
> fatal: unable to access 'https://github.com/OnionIoT/source.git/':
> error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
> version lev@jive:~/git$ unset GIT_SSL_VERSION lev@jive:~/git$ git clone
> https://github.com/OnionIoT/source.git Cloning into 'source'...
> * Couldn't find host github.com in the .netrc file; using defaults
> *   Trying 192.30.253.112...
> * TCP_NODELAY set
> * Connected to github.com (192.30.253.112) port 443 (#0)
> * ALPN, offering http/1.1
> * Cipher selection:
> ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
> * successfully set certificate verify locations:
> *   CAfile: /etc/ssl/certs/ca-certificates.crt
>   CApath: /etc/ssl/certs
> * error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol
> version
> * Curl_http_done: called premature == 1
> * stopped the pause stream!
> * Closing connection 0
> fatal: unable to access 'https://github.com/OnionIoT/source.git/':
> error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
> 
> 
> I can connect to other git servers without any error. This is a debian
> stable system with the following components:
> 
> 	git version 2.11.0
> 	libcurl 7.52.1
> 	OpenSSL 1.0.2l

This OpenSSL version is certainly recent enough to support TLSv1.2. Are
you sure you ran the newly compiled git binary?

(Sorry for asking stupid questions; it's sometimes difficult to get to
the root of a problem)

> 
> 
> Is there any way to know what is the exact protocol used? Are there any
> workaround, fix for this issue?
> 
> Any help welcome. Thank you,
> Levente
> 


Cheers,
Beat


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-25 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-25  0:32 git https and github Lev
2018-04-25 17:44 ` Beat Bolli

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).