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

Add hostname validation for JSSTrustManager #1020

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Aug 9, 2024

The JSSTrustManager has been modified to take an optional hostname attribute. If provided, it will be used to validate the SAN extension or the cert subject DN.

@edewata edewata requested a review from fmarco76 August 9, 2024 17:00
Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The hostname checks look good but it is not working in case of wildcard DNS name in the SAN. Should they be supported? In case, they could be managed in separate PR, just adding a TODO/note

The JSSTrustManager has been modified to take an optional
hostname attribute. If provided, it will be used to validate
the SAN extension or the cert subject DN.
Copy link

sonarqubecloud bot commented Aug 9, 2024

@edewata
Copy link
Contributor Author

edewata commented Aug 9, 2024

Good point. I've added TODO comments. Thanks!

@edewata edewata merged commit 1304825 into dogtagpki:master Aug 9, 2024
32 of 35 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.

2 participants