]> git.kaiwu.me - nginx.git/commit
SSL: fixed unexpected certificate requests (ticket #2008).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 Jun 2020 14:15:51 +0000 (17:15 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 Jun 2020 14:15:51 +0000 (17:15 +0300)
commitfa2f2e35082ba01a8aed026b34fc5246637f104e
tree326c6aef1d5e65a8a1758ab41bcd5a05b71ecb77
parent1bbc37d35c67c0ef5271551f8e40fd899442d157
SSL: fixed unexpected certificate requests (ticket #2008).

Using SSL_CTX_set_verify(SSL_VERIFY_PEER) implies that OpenSSL will
send a certificate request during an SSL handshake, leading to unexpected
certificate requests from browsers as long as there are any client
certificates installed.  Given that ngx_ssl_trusted_certificate()
is called unconditionally by the ngx_http_ssl_module, this affected
all HTTPS servers.  Broken by 699f6e55bbb4 (not released yet).

Fix is to set verify callback in the ngx_ssl_trusted_certificate() function
without changing the verify mode.
src/event/ngx_event_openssl.c