Skip to content

Navigation Menu

Sign in
Sign up

Remove KeyUsageCertSign requirement for X5C provisioner roots - #1680

Open
mmustafasenoglu wants to merge 1 commit into
smallstep:master from
mmustafasenoglu:fix/x5c-allow-no-certsign
Open

Remove KeyUsageCertSign requirement for X5C provisioner roots #1680
mmustafasenoglu wants to merge 1 commit into
smallstep:master from
mmustafasenoglu:fix/x5c-allow-no-certsign

Conversation

@mmustafasenoglu

@mmustafasenoglu mmustafasenoglu commented Aug 6, 2026

Copy link
Copy Markdown

Closes #1329

The CLI enforced that X5C root certificates must have the KeyUsageCertSign extension, but the step-ca API does not require this. A self-signed certificate without KeyUsageCertSign can successfully authenticate via --x5c-cert/--x5c-key flags, so the CLI should not reject it during provisioner creation.

This removes the KeyUsageCertSign check from both createX5CDetails() in add.go and updateX5CDetails() in update.go, aligning the CLI behavior with the API.

As noted in the issue: the only requirement from the API is that the client certificate has Digital Signature in its Key Usage so it can sign tokens. The root certificate validation during provisioner creation is overly strict compared to what the API actually enforces.

The CLI enforced that X5C root certificates must have the
KeyUsageCertSign extension, but the step-ca API does not require
this. A self-signed certificate without KeyUsageCertSign can
successfully authenticate via --x5c-cert/--x5c-key flags, so the
CLI should not reject it during provisioner creation.
Closes smallstep#1329 
Copilot AI lite review requested due to automatic review settings August 6, 2026 09:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the needs triage Waiting for discussion / prioritization by team label Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort, defaults to Lite
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Allow x5c to take certificate without KeyUsageCertSign

AltStyle によって変換されたページ (->オリジナル) /