curl / Mailing Lists / curl-library / Single Mail


Re: Does libcurl support TLS/SSL SNI?

From: Alibek Joraev via curl-library <>
Date: Wed, 25 Oct 2017 04:52:23 +0000 (UTC)

SNI is part of SSL API, not Curl. (unless I missed something in new API-s).

to enable SNI extension support, try something like this:

1. my_ssl = SSL_new( my_ssl_ctx );

2. SSL_set_tlsext_host_name( my_ssl _, host.c_str() );

    On Wednesday, 25 October 2017, 03:38:25 GMT+1, Jack via curl-library <> wrote:
 Hi, I find one CURLOPT_CONNECT_TO, but doc said:

The "connect to" host and port are only used to establish the network connection. They do NOT affect the host and port that are used for TLS/SSL (e.g. SNI, certificate verification) or for the application protocols.

Does libcurl have other option to support SNI in SSL client hello?

Received on 2017-10-25