]> git.kaiwu.me - nginx.git/commit
Stream: client SSL certificates were not checked with SNI
authorVadim Zhestikov <v.zhestikov@f5.com>
Wed, 14 Oct 2026 17:48:06 +0000 (10:48 -0700)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Wed, 11 Nov 2026 12:14:46 +0000 (16:14 +0400)
commit6f9fceed8dd7eb7d39b3930dc4f6824ecfe88559
tree1132f8a9b30f24cd5bc3873df8b7f2d0e775ef7b
parentd9fd14eb3eb4fc08a43b8ac7462ba9ed23caf958
Stream: client SSL certificates were not checked with SNI

If the SSL handshake completed in the first call of
ngx_stream_ssl_handler(), the client certificate was verified using the
configuration of the default server, rather than the virtual server
selected by SNI during the handshake.

The problem appeared in d21675228 (1.25.5).  It is similar to the one
fixed in 620c9a4c4.

The fix is to re-read the server configuration before verifying the
client certificate.

Reported by CERT.PL.
src/stream/ngx_stream_ssl_module.c