Skip to content

tls_mgm: fix require_cert and verify_cert enforcement for virtual domains#4115

Open
ipoddubny wants to merge 1 commit into
OpenSIPS:masterfrom
ipoddubny:tls_sni_verify_fix
Open

tls_mgm: fix require_cert and verify_cert enforcement for virtual domains#4115
ipoddubny wants to merge 1 commit into
OpenSIPS:masterfrom
ipoddubny:tls_sni_verify_fix

Conversation

@ipoddubny

Copy link
Copy Markdown

Summary
Fixes the enforcement of require_cert and verify_cert settings for virtual TLS domains sharing a single socket.

Details
This is a generic bug fix.

Multiple virtual TLS domains can be defined on a single socket via match_sip_domain (using SNI), each with distinct require_cert and verify_cert settings.
However, these domain-specific verification rules are never applied to the connection during the TLS handshake, leaving only the socket's default settings enforced.

Solution
Adding SSL_set_verify to the SNI callbacks for both OpenSSL and WolfSSL to ensure the correct domain-specific rules are applied.

Compatibility
There should be no issues. The change may affect invalid configurations with mixed verify/require values for domains on the same socket.

Closing issues
I don't see any previous issues reporting this bug, submitting PR directly.

…ains

Multiple virtual TLS domains can be defined on a single socket via
match_sip_domain (SNI), each with distinct require_cert and verify_cert
settings. However, these domain-specific verification rules were
never applied to the connection during the TLS handshake, leaving only
the socket's default settings enforced.

This commit adds SSL_set_verify to the SNI callbacks for both OpenSSL
and WolfSSL to ensure the correct domain-specific rules are applied.
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.

1 participant