From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27144 invoked by alias); 21 Sep 2015 06:55:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26645 invoked by uid 89); 21 Sep 2015 06:55:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-io0-f172.google.com Received: from mail-io0-f172.google.com (HELO mail-io0-f172.google.com) (209.85.223.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 21 Sep 2015 06:55:01 +0000 Received: by ioii196 with SMTP id i196so110683927ioi.3 for ; Sun, 20 Sep 2015 23:54:59 -0700 (PDT) X-Received: by 10.107.8.212 with SMTP id h81mr23722867ioi.89.1442818499513; Sun, 20 Sep 2015 23:54:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.12.73 with HTTP; Sun, 20 Sep 2015 23:54:39 -0700 (PDT) From: Lukasz Pielak Date: Mon, 21 Sep 2015 06:55:00 -0000 Message-ID: Subject: Https proxy auth issue with git in cygwin 2.2.1 To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-09/txt/msg00296.txt.bz2 Hi In the latest Cygwin 2.2.1. git doesn=E2=80=99t work with proxy authenticat= ion. The git version is 2.5.1 and the curl version is 7.43. The error prints fatal: unable to access 'https://github.com/mockito/mockito.git/': Unknown SSL protocol error in connection to github.com:443 In my previous Cygwin 1.7.35 (with curl 7.41) this problem didn=E2=80=99t exist. Git for windows (git 2.5.1 version, but curl is 7.44) seems to work too. I assume that there is a bug in curl rather than in git. Console output: { mockito } master =C2=BB uname -a ~/gitrepo/demo/mockito 127 CYGWIN_NT-6.1-WOW K11263 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin { mockito } master =C2=BB { mockito } master =C2=BB curl --version ~/gitrepo/demo/mockito curl 7.43.0 (i686-pc-cygwin) libcurl/7.43.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.29 libssh2/1.5.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: Debug IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink { mockito } master =C2=BB GIT_TRACE=3D2 git pull ~/gitrepo/demo/mockito 12:22:48.164349 git.c:558 trace: exec: 'git-pull' 12:22:48.164349 run-command.c:347 trace: run_command: 'git-pull' 12:22:48.429558 git.c:348 trace: built-in: git 'rev-parse' '--parseopt' '--stuck-long' '--' 12:22:48.689167 git.c:348 trace: built-in: git 'rev-parse' '--git-dir' 12:22:48.860772 git.c:348 trace: built-in: git 'rev-parse' '--git-path' 'objects' 12:22:49.032378 git.c:348 trace: built-in: git 'rev-parse' '--is-bare-repository' 12:22:49.094780 git.c:348 trace: built-in: git 'rev-parse' '--show-toplevel' 12:22:49.188383 git.c:348 trace: built-in: git 'ls-files' '-u' 12:22:49.297586 git.c:348 trace: built-in: git 'symbolic-ref' '-q' 'HEAD' 12:22:49.469192 git.c:348 trace: built-in: git 'config' 'branch.master.rebase' 12:22:49.656398 git.c:348 trace: built-in: git 'config' 'pull.rebase' 12:22:49.843604 git.c:348 trace: built-in: git 'config' 'pull= .ff' 12:22:49.921606 git.c:348 trace: built-in: git 'rev-parse' '-q' '--verify' 'HEAD' 12:22:50.015209 git.c:348 trace: built-in: git 'fetch' '--update-head-ok' 12:22:50.171214 run-command.c:347 trace: run_command: 'git-remote-https' 'origin' 'https://github.com/mockito/mockito.git' fatal: unable to access 'https://github.com/mockito/mockito.git/': Unknown SSL protocol error in connection to github.com:443 { mockito } master =C2=BB GIT_CURL_VERBOSE=3D1 git pull ~/gitrepo/demo/mockito 1 * STATE: INIT =3D> CONNECT handle 0x800834c8; line 1075 (connection #-5000) * Couldn't find host github.com in the .netrc file; using defaults * Added connection 0. The cache now contains 1 members * Trying 10.105.36.152... * STATE: CONNECT =3D> WAITCONNECT handle 0x800834c8; line 1128 (connection = #0) * Connected to webproxy.mycorp.com (10.105.36.152) port 8080 (#0) * STATE: WAITCONNECT =3D> WAITPROXYCONNECT handle 0x800834c8; line 1225 (connection #0) * Establish HTTP proxy tunnel to github.com:443 > CONNECT github.com:443 HTTP/1.1 Host: github.com:443 User-Agent: git/2.5.1 Proxy-Connection: Keep-Alive * Read response immediately from proxy CONNECT < HTTP/1.1 407 Proxy Authentication Required < Proxy-Authenticate: NEGOTIATE < Proxy-Authenticate: NTLM < Proxy-Authenticate: BASIC realm=3D"BCAAA" < Cache-Control: no-cache < Pragma: no-cache < Content-Type: text/html; charset=3Dutf-8 < Proxy-Connection: close < Connection: close < Content-Length: 1551 < * Ignore 1551 bytes of response-body * Connect me again please * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STREN= GTH * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * Unknown SSL protocol error in connection to github.com:443 * Curl_done * Closing connection 0 * The cache now contains 0 members * STATE: WAITPROXYCONNECT =3D> CONNECT handle 0x800834c8; line 1208 (connection #-5000) * Couldn't find host github.com in the .netrc file; using defaults * Added connection 1. The cache now contains 1 members * Hostname webproxy.mycorp.com was found in DNS cache * Trying 10.105.36.152... * STATE: CONNECT =3D> WAITCONNECT handle 0x800834c8; line 1128 (connection = #1) * Connected to webproxy.mycorp.com (10.105.36.152) port 8080 (#1) * STATE: WAITCONNECT =3D> WAITPROXYCONNECT handle 0x800834c8; line 1225 (connection #1) * Establish HTTP proxy tunnel to github.com:443 > CONNECT github.com:443 HTTP/1.1 Host: github.com:443 User-Agent: git/2.5.1 Proxy-Connection: Keep-Alive * Read response immediately from proxy CONNECT < HTTP/1.1 407 Proxy Authentication Required < Proxy-Authenticate: NEGOTIATE * gss_init_sec_context() failed: : SPNEGO cannot find mechanisms to negotia= te < Proxy-Authenticate: NTLM < Proxy-Authenticate: BASIC realm=3D"BCAAA" < Cache-Control: no-cache < Pragma: no-cache < Content-Type: text/html; charset=3Dutf-8 < Proxy-Connection: close < Connection: close < Content-Length: 1551 < * Received HTTP code 407 from proxy after CONNECT * Expire cleared * Curl_done * Closing connection 1 * The cache now contains 0 members fatal: unable to access 'https://github.com/mockito/mockito.git/': Unknown SSL protocol error in connection to github.com:443 Thanks Lukasz -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple