Skip to content

Fix Windows compatibility with hostnames containing a trailing label - #241

Merged
complexspaces merged 1 commit into
mainfrom
verifier-trailing-labels-compat
Jul 29, 2026
Merged

Fix Windows compatibility with hostnames containing a trailing label#241
complexspaces merged 1 commit into
mainfrom
verifier-trailing-labels-compat

Conversation

@complexspaces

Copy link
Copy Markdown
Collaborator

This PR fixes a small incompatibility in the Windows verifier around hostnames which have a trailing . in them that originates from the Win32 API itself.

Other platforms do not appear to have the same limitation but I added the same stripping change everywhere to help keep the Rust layer of this library consistent cross-platform per its goals.

Closes #240

@complexspaces
complexspaces requested a review from djc July 29, 2026 16:43
@complexspaces
complexspaces force-pushed the verifier-trailing-labels-compat branch 3 times, most recently from 69698d5 to d9f6352 Compare July 29, 2026 16:57
@complexspaces
complexspaces force-pushed the verifier-trailing-labels-compat branch from d9f6352 to 9f398bd Compare July 29, 2026 17:17

@djc djc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense to me.

@complexspaces
complexspaces merged commit a8d640d into main Jul 29, 2026
19 checks passed
@complexspaces
complexspaces deleted the verifier-trailing-labels-compat branch July 29, 2026 18:40
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.

Windows: an absolute FQDN (trailing dot) fails NotValidForName where webpki accepts it

2 participants