Skip to content

Fix certificate chain send during SSL handshake - Closes #4877#4904

Merged
renecannao merged 1 commit intov3.0from
v3.0-4877
Apr 10, 2025
Merged

Fix certificate chain send during SSL handshake - Closes #4877#4904
renecannao merged 1 commit intov3.0from
v3.0-4877

Conversation

@JavierJF
Copy link
Collaborator

@JavierJF JavierJF commented Apr 3, 2025

Description

Removed usages of 'SSL_CTX_add_extra_chain_cert'. Manually adding certs to the certificate chain shouldn't be required, using 'SSL_CTX_load_verify_locations' with the right arguments should be enough for the current use case. This way the selection of certificates sent during handshake for verification purposes is automatically handled by OpenSSL.

Closes #4877.

Removed usages of 'SSL_CTX_add_extra_chain_cert'. Manually adding certs
to the certificate chain shouldn't be required, using
'SSL_CTX_load_verify_locations' with the right arguments should be
enough, allowing OpenSSL to correctly select the certificates to be used
for validation purposes.
@JavierJF
Copy link
Collaborator Author

JavierJF commented Apr 4, 2025

Retest this please.

1 similar comment
@JavierJF
Copy link
Collaborator Author

JavierJF commented Apr 9, 2025

Retest this please.

@renecannao renecannao merged commit 1123da3 into v3.0 Apr 10, 2025
6 of 7 checks passed
@bbezak
Copy link

bbezak commented Jul 1, 2025

can it be backported to 2.7 branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

During SSL handshake ProxySQL should send all certificate chain

3 participants