<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13585</bug_id>
          
          <creation_ts>2019-10-08 14:07:11 +0000</creation_ts>
          <short_desc>git clone using https fails on CentOS 8 with &apos;unsupported protocol&apos;</short_desc>
          <delta_ts>2020-02-14 12:29:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>Website</product>
          <component>web-content</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Q4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Connor Imes">cimes</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>jefro</cc>
    
    <cc>ndec13</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85258</commentid>
    <comment_count>0</comment_count>
    <who name="Connor Imes">cimes</who>
    <bug_when>2019-10-08 14:07:11 +0000</bug_when>
    <thetext>Running CentOS 8, using a mostly minimal installation, I tried to clone the poky repository but received the following error:

$ git clone https://git.yoctoproject.org/git/poky
Cloning into &apos;poky&apos;...
fatal: unable to access &apos;https://git.yoctoproject.org/git/poky/&apos;: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

$ cat /etc/redhat-release 
CentOS Linux release 8.0.1905 (Core) 
$ openssl version
OpenSSL 1.1.1 FIPS  11 Sep 2018
$ git --version
git version 2.18.1

Trying different &apos;tlsv1.*&apos; values for the environment variable &apos;GIT_SSL_VERSION&apos; did not help (&apos;tlsv1.3&apos; resulted in a different error: &apos;error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure&apos;).

I have not had trouble cloning other repositories using https (e.g., from Github). Cloning poky from &apos;git://git.yoctoproject.org/poky&apos; works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85299</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-10-10 14:49:40 +0000</bug_when>
    <thetext>Konrad can you or Peiran look at this for 3.1-M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85309</commentid>
    <comment_count>2</comment_count>
    <who name="Konrad Scherer">konrad.scherer</who>
    <bug_when>2019-10-10 16:24:53 +0000</bug_when>
    <thetext>The certificate for https://git.yoctoproject.org uses TLS v1.0 and this is not supported by the openssl version in CentOS 8. 

On Ubuntu 19.04:

&gt; openssl s_client -connect git.yoctoproject.org:443
New, TLSv1.0, Cipher is ECDHE-RSA-AES256-SHA
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1
    Cipher    : ECDHE-RSA-AES256-SHA

On CentOS 8:

&gt; openssl s_client -connect git.yoctoproject.org:443
CONNECTED(00000004)
139948769191744:error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol:ssl/statem/statem_lib.c:1907:

specifying the TLS version for openssl works
&gt; openssl s_client -connect git.yoctoproject.org:443 -tls1
New, TLSv1.0, Cipher is ECDHE-RSA-AES256-SHA
Server public key is 2048 bit

but specifying the TLS version for curl doesn&apos;t work
&gt; curl --tlsv1 https://git.yoctoproject.org/
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

This may be a bug in curl, but since git uses libcurl disabling git ssl verification doesn&apos;t work and setting the sslVersion to tlsv1.0 doesn&apos;t work either.

This probably needs to fixed at the http server config which seems to only support TLS 1.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86445</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2020-02-14 12:29:14 +0000</bug_when>
    <thetext>I&apos;ve tested the TLS upgrades on CentOS8 and they are working now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>