Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSSE: add LDAPS endpoint identification to X509ExtendedTrustManager #227

Conversation

cconlon
Copy link
Member

@cconlon cconlon commented Oct 21, 2024

This PR adds Endpoint Identification for hostname verification to wolfJSSE's X509ExtendedTrustManager implementation.

Previously we had only supported HTTPS endpoint identification, but with this now support both HTTPS (RFC 2818) and LDAPS (RFC 2830).

Calling code needs to sent the endpoint identification to LDAPS on their SSLParameters being used:

SSLParameters params = ...
params.setEndpointIdentificationAlgorithm("LDAPS");

PR also includes ant tests for LDAPS hostname verification.

Depends on native wolfSSL support for left-most wildcard matching, which was merged in as of wolfSSL/wolfssl#7966.

@JacobBarthelmeh JacobBarthelmeh merged commit 14685a6 into wolfSSL:master Oct 29, 2024
36 checks passed
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.

3 participants