git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Janusz Harkot <janusz.harkot@gmail.com>
To: Daniel Stenberg <daniel@haxx.se>
Cc: git@vger.kernel.org
Subject: Re: SNI (SSL virtual hosts)
Date: Tue, 4 Jun 2013 18:59:52 +0200	[thread overview]
Message-ID: <CEC3E2C7A86A477DAC658432461A60BC@gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1306041349290.32021@tvnag.unkk.fr>

> What makes you suggest that's what's happening? Sure, if it would've sent no  
> or the wrong host name it would probably have that effect.

line:

[36] * Re-using existing connection! (#0) with host (nil)  
> Any chance you can snoop on the network and the SSL handshake to see who's to  
> blame? I can't but to think that is is a very common use case!


I was trying to verify this via command line curl, and GET/POST is working fine.

There is one thing that make me suspicious - this is that message about SSL session expiration:
[64] * SSL re-using session ID
[65] * SSL connection using RC4-SHA
[66] * old SSL session ID is stale, removing



So, I've spent last few hours playing with different settings/builds etc.  
I was using sources of curl (7.30.0) and git (1.8.2.3)

curl & git bult with default os-x's openssl (0.9.8) - failed
curl & git bult with '--with-darwin-ssl' + default openssl for git - failed

curl & git both bult with newest openssl (1.0.1e):
error: SSL certificate problem: self signed certificate in certificate chain while accessing https://....

so it looks promising, I've set GIT_SSL_CAPATH (because bundle config is not supported in git - this is a good feature request)

and.. t looks like it is working…
first and second attempt was to correct SNI host!

So, the question is still why it is not working with openssl 0.9.8r - this version supports SNI by default.
This looks like an error in openssl (maybe: Only allow one SGC handshake restart for SSL/TLS.)

Now is the question, shall this be handled by curl or left alone?
(handling older version of openssl, and force new ssl session?)


kind regards,
Janusz


p.s.
I've tested cur built with polarssl - works and gnutls - works too...

  reply	other threads:[~2013-06-04 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DC851F5EA18E478DACB62178624BF5B7@gmail.com>
2013-06-04  9:36 ` SNI (SSL virtual hosts) Janusz Harkot
2013-06-04  9:45   ` Daniel Stenberg
2013-06-04 10:19     ` Janusz Harkot
2013-06-04 11:58       ` Daniel Stenberg
2013-06-04 16:59         ` Janusz Harkot [this message]
2013-06-04 21:18           ` Daniel Stenberg
2013-06-04 21:26             ` Janusz Harkot
2013-06-05  6:58               ` Daniel Stenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CEC3E2C7A86A477DAC658432461A60BC@gmail.com \
    --to=janusz.harkot@gmail.com \
    --cc=daniel@haxx.se \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).