mirror of
https://github.com/nginx/nginx.git
synced 2026-11-20 07:02:58 +00:00
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 ind21675228(1.25.5). It is similar to the one fixed in620c9a4c4. The fix is to re-read the server configuration before verifying the client certificate. Reported by CERT.PL.
This commit is contained in:
parent
d9fd14eb3e
commit
6f9fceed8d
1 changed files with 2 additions and 0 deletions
|
|
@ -462,6 +462,8 @@ ngx_stream_ssl_handler(ngx_stream_session_t *s)
|
|||
}
|
||||
}
|
||||
|
||||
sscf = ngx_stream_get_module_srv_conf(s, ngx_stream_ssl_module);
|
||||
|
||||
if (sscf->verify) {
|
||||
rc = SSL_get_verify_result(c->ssl->connection);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue