Skip to content

ucentral-client: reject wildcard certs matching multi-level subdomains#10

Open
ArifAlam wants to merge 1 commit intoTelecominfraproject:mainfrom
ArifAlam:staging-WIFI-15386
Open

ucentral-client: reject wildcard certs matching multi-level subdomains#10
ArifAlam wants to merge 1 commit intoTelecominfraproject:mainfrom
ArifAlam:staging-WIFI-15386

Conversation

@ArifAlam
Copy link

Per RFC 6125, a wildcard certificate like *.example.com should only match a single DNS label (e.g. foo.example.com), not multi-level subdomains (e.g. foo.bar.example.com). The existing validate_CN() only checked that the server name ended with the wildcard's domain suffix, allowing multi-level matches. Add a check that the prefix portion replacing the wildcard contains no dots.

Fixes WIFI-15386

Per RFC 6125, a wildcard certificate like *.example.com should only
match a single DNS label (e.g. foo.example.com), not multi-level
subdomains (e.g. foo.bar.example.com). The existing validate_CN()
only checked that the server name ended with the wildcard's domain
suffix, allowing multi-level matches. Add a check that the prefix
portion replacing the wildcard contains no dots.

Fixes WIFI-15386

Signed-off-by: Arif Alam <arif.alam@netexperience.com>
@ArifAlam ArifAlam requested a review from blogic March 18, 2026 04:13
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