*SOLVED for me*

First I found out that it happen when the client is Ubuntu or MAC, On 
RedHat it work okay.

I found in 
http://stackoverflow.com/questions/7766961/git-trouble-via-https-routinesssl23-get-server-hello
 the 
solution that work for me:

I add the line

BrowserMatch "git" nokeepalive ssl-unclean-shutdown

to the configuration file of apache, on the git server.

On Tuesday, April 29, 2014 4:43:25 PM UTC+3, shlo....@gmail.com wrote:
>
>
> Hi,
>
> I have a git server and today I change his name and ip address.
>
> When I run 'git clone ...'  from my machine I get a copy of the data okay, 
> but when another user from different machine run it they get:
>
> *fatal: unable to access 'https://gitserver. <https://gitserver.>.../': 
> gnutls_handshake() warning: The server name sent was not recognized*
>
>
> I tried to compare between the output of the commands: 
>
> * git config --list*
>
>
> I saw that I have definition that the user did not have:
>
> *[http]*
> *        sslVerify = false*
> *        sslCAinfo = /path/to/cert/bbb.crt*
> *        sslCAPath = **/path/to/cert/*
>
>
> I define those configuration to the other user, that not success to clone 
> and now it's not give the error. 
> *BUT* It just write:
>
> *Cloning into 'aaa'*
>
> but *aaa* *not* create and the *data* *not* received.
>
> The users test it before I change the hostname at he said it was okay.
>
> I also run from the problematic machine:
>
> *GIT_CURL_VERBOSE=1  git clone  https://gitserver. <https://gitserver.>..*
>
> I get the output:
>
> *Cloning into 'aaa'...*
>
> ** Couldn't find host gitserver in the .netrc file; using defaults*
> ** Adding handle: conn: 0x24af4a0*
> ** Adding handle: send: 0*
> ** Adding handle: recv: 0*
> ** Curl_addHandleToPipeline: length: 1*
> ** - Conn 0 (0x24af4a0) send_pipe: 1, recv_pipe: 0*
> ** About to connect() to gitserver port 443 (#0)*
> **   Trying 111.222.333.444...*
> ** Connected to gitserver (111.222.333.444) port 443 (#0)*
> ** error reading ca cert file /etc/httpd/cert/bbb.crt (Error while reading 
> file.)*
> ** gnutls_handshake() warning: The server name sent was not recognized*
> **        common name: WARNING couldn't obtain*
> **        server certificate verification SKIPPED*
>
>  
> When I run that command from the machine that I success to clone I get:
>
> *Initialized empty Git repository in /path/to/aaa/.git/*
> ** Couldn't find host gitserver in the .netrc file; using defaults*
> ** About to connect() to gitserver port 443 (#0)*
> **   Trying 111.222.333.444... * Connected to gitserver (111.222.333.444) 
> port 443 (#0)*
> ** Initializing NSS with certpath: sql:/etc/pki/nssdb*
> ** skipping SSL peer certificate verification*
> ** SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA*
> ** Server certificate:*
>
>  ....... 
>
> and here I get the data okay. 
>
> Why it work different from different machines?
> Thanks.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to