Bug #82872 Add TLS SNI support to the client. (contribution)
Submitted: 6 Sep 2016 15:57 Modified: 6 Sep 2016 17:29
Reporter: OCA Admin (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Connection Handling Severity:S4 (Feature request)
Version: OS:Any
Assigned to: CPU Architecture:Any

[6 Sep 2016 15:57] OCA Admin
Description:
This bug tracks a contribution by Felipe Gasper (Github user: FGasper) as described in http://github.com/mysql/mysql-server/pull/95

How to repeat:
See description

Suggested fix:
See contribution code attached
[6 Sep 2016 15:57] OCA Admin
Contribution submitted via Github - Add TLS SNI support to the client. 
(*) Contribution by Felipe Gasper (Github FGasper, mysql-server/pull/95#issuecomment-244937769): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

-FG

> On 6 Sep 2016, at 6:48 AM, mysql-oca-bot <notifications@github.com> wrote:
> 
> I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: git_patch_84047081.txt (text/plain), 5.48 KiB.

[6 Sep 2016 17:29] MySQL Verification Team
Thank you for the contribution.
[8 Sep 2016 8:38] Georgi Kodinov
Thank you for taking the time to contribute this code. But I'm afraid it's of not much use for the wider audience without at least some level of server support.
[6 Apr 2017 11:25] Daniël van Eeden
It is useful even without server support: It allows a proxy to choose a correct backend connection.
[6 Oct 2017 8:49] Marc Jadoul
An exemple of use case is Mysql on Openshift or any other infra with haproxy in front.
[16 Sep 2019 11:01] Sergey Shishov
Please integrate this change as a lot of people in cloud environment using a different kind of proxies and it would be very useful to have this ability to route by SNI.
[27 Aug 2020 15:59] Kévin toublanc
Any news on this feature ? Thanks
[24 Aug 2021 10:06] Daniël van Eeden
Related:
Bug #84849
Bug #104649
[20 Jul 2023 6:10] Daniël van Eeden
From https://dev.mysql.com/doc/relnotes/mysql/8.1/en/news-8-1-0.html

"MySQL now implements client-side Server Name Indication (SNI), which is an extension to the TLS protocol. Client applications can pass a server name to the libmysqlclient C API library with the new MYSQL_OPT_TLS_SNI_SERVERNAME option for mysql_options(). Similarly, each MySQL client program now includes a --tls-sni-servername command option to pass in a name. The new Tls_sni_server_name server status variable indicates the name if one is set for the session. Our thanks to Meta for the contribution. (Bug #33176362, WL #14839)"