Skip to content

fix(v2): order the wildcard as the domain for a no-CN request with a name and its own wildcard - #56

Open
spbsoluble wants to merge 3 commits into
feat/v2-consolidatedfrom
fix/v2-nocn-wildcard-domain
Open

spbsoluble wants to merge 3 commits into
feat/v2-consolidatedfrom
fix/v2-nocn-wildcard-domain

Conversation

@spbsoluble

Copy link
Copy Markdown
Collaborator

Summary

A V2 SSL request with no CN whose SANs are a name and its own wildcard (example.com + *.example.com) used to order example.com with the wildcard in additionalDomains. CERTInext rejects that shape (EMS-1173). The wildcard is now the order's domain and the plain name the additional domain, which is a wildcard UCC order covering both names.

Fixes

  • fix(v2): For a request with no CN, when the SANs include the chosen domain's own wildcard, certificate.domain is the wildcard and the plain name goes in additionalDomains. Other SANs still go in additionalDomains.
  • Unchanged: a request with a CN (a wildcard domain that differs from the CSR's CN is rejected, EMS-1056), a request with an explicit DomainName, and SANs whose wildcard belongs to a different name.

Chores

  • docs: the CHANGELOG no-CN entry and the DomainName row in docsource/configuration.md describe the new behavior.
  • test(live): V2SslComRetestTests, an opt-in SSL.com ordering retest (CERTINEXT_V2_SSLCOM_RETEST=1) that revokes the orders it places.

Testing

  • Unit tests: 1449 passed, 0 failed (CERTInext.Tests, Release).
  • Release build: 0 warnings.
  • New tests in V2NoCnEnrollmentTests: wildcard-first SANs order the wildcard; CN = apex keeps the apex; the apex, its wildcard and another name keep every name on the order; an explicit DomainName isn't changed; another name's wildcard isn't promoted; plus a 6-case theory for PromoteWildcardSanToDomain.

Other

Stacked on #39 (feat/v2-consolidated).

spbsoluble and others added 3 commits November 23, 2026 11:38
…as a name and its own wildcard

SANs example.com + *.example.com with no CN now send certificate.domain=*.example.com and
additionalDomains=[example.com]. A plain domain with its wildcard in additionalDomains is rejected
by CERTInext (EMS-1173). Requests with a CN or an explicit DomainName keep their domain.
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