git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: SNI (SSL virtual hosts)

From
Daniel Stenberg <daniel@haxx.se>
Date
Jun 4, 2013, 21:18 UTC
Message-ID
<alpine.DEB.2.00.1306042305300.2878@tvnag.unkk.fr>
In-Reply-To
<CEC3E2C7A86A477DAC658432461A60BC@gmail.com>
On Tue, 4 Jun 2013, Janusz Harkot wrote:
Show 6 quoted lines
>> 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)

Ah that. Yes, that's a stupid line to show (that bug has been fixed since). But if you look further down your log you see that the connection which is re-used according to that log line gets closed anyway.

> it looks like it is working
Awesome!
> 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.)

Right. As you can see in the libcurl code it activates SNI for OpenSSL the exact same way independently of what version that's used.

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

I'm not even completely convinced this is "just" an old-OpenSSL-problem. If that version you're using is the one Apple has provided, there's the risk that the problem is rather caused by their changes!

I'm reluctant to globally switch off session-id caching for OpenSSL 0.9.8 users since that feature has been used for over 8 years in the code and you're the first to have a problem with it! =-/

-- 
  / daniel.haxx.se
Previous: Janusz HarkotNext: Janusz Harkot
Message 6 of 8 in “SNI (SSL virtual hosts)”
  1. Janusz HarkotJun 4, 2013
  2. Daniel StenbergJun 4, 2013
  3. Janusz HarkotJun 4, 2013
  4. Daniel StenbergJun 4, 2013
  5. Janusz HarkotJun 4, 2013
  6. Daniel StenbergJun 4, 2013
  7. Janusz HarkotJun 4, 2013
  8. Daniel StenbergJun 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.