Custom certificates: the signing request must name only what was ordered #70

Merged
calvin merged 2 commits from csr-subject into master 2026-11-13 06:52:48 +00:00
Owner

Found with the real Let's Encrypt on 2026-11-13: a custom certificate (deep.er.<zone> + wildcard) was refused at finalize with "CSR does not specify same identifiers as Order". The signing request carried the zone name as its common name; a provider counts the common name as a requested name, and for a custom certificate the zone is not in the order.

  • Names.csr_subject/1: the common name is the certificate's first name that is not a wildcard. Zone certificates are unchanged (their first name is the zone).
  • The fake issuer used by the runner tests now refuses a request whose names (common name plus alternative names) differ from the order, as a real provider does. Pebble accepts such a request, which is why the integration test passed.
  • Unit tests for the subject.
Found with the real Let's Encrypt on 2026-11-13: a custom certificate (`deep.er.<zone>` + wildcard) was refused at finalize with "CSR does not specify same identifiers as Order". The signing request carried the zone name as its common name; a provider counts the common name as a requested name, and for a custom certificate the zone is not in the order. - `Names.csr_subject/1`: the common name is the certificate's first name that is not a wildcard. Zone certificates are unchanged (their first name is the zone). - The fake issuer used by the runner tests now refuses a request whose names (common name plus alternative names) differ from the order, as a real provider does. Pebble accepts such a request, which is why the integration test passed. - Unit tests for the subject.
Use the certificate's own host as the common name of the signing request
All checks were successful
ci/woodpecker/pr/image Pipeline was successful
ci/woodpecker/pr/quality Pipeline was successful
ci/woodpecker/pr/integration Pipeline was successful
b62931cc24
Merge remote-tracking branch 'origin/master' into csr-subject
All checks were successful
ci/woodpecker/pr/image Pipeline was successful
ci/woodpecker/pr/quality Pipeline was successful
ci/woodpecker/pr/integration Pipeline was successful
7201ca5bac
# Conflicts:
#	CHANGELOG.md
calvin merged commit 0e1d661710 into master 2026-11-13 06:52:48 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
external/salt-dns!70
No description provided.