feature: EST Rotate - Inclusive E/KU Check; - #83
Open
Scylin232 wants to merge 1 commit into
Open
Conversation
doanac
reviewed
Aug 13, 2026
| @@ -189,18 +189,20 @@ func verifyNewCert(curCert, newCert *x509.Certificate) error { | |||
| if !bytes.Equal(curCert.RawSubject, newCert.RawSubject) { | |||
Member
There was a problem hiding this comment.
Github does not allow you to comment on commit messages. However, the commit needs a couple things:
- A Signed-off-by
- A description of the change. Your PR header is good - you could just use that content in the commit message
Our security engineer is on holiday this week. When he gets back, we'll have him take a close look.
Author
There was a problem hiding this comment.
Pardon my commit etiquette. Fixed! :)
Let's wait for the security engineer then, thanks!
Signed-off-by: Tymur Hulua <tymur.hulua@goldbeck.de>
This commit updates the Key Usage and Extended Key Usage validation for EST-submitted certificates. Instead of requiring Digital Signature on KU and TLS Web Client Authentication on EKU to be the only present usages, the check now verifies that they are included among the others.
This change allows EST servers to extend CSRs with additional usages, such as `keyCertSign`, `cRLSign`, or `codeSigning`, without failing validation.
E.G:
The following certificate would have been rejected in the past, but is now accepted:
```
X509v3 extensions:
X509v3 Key Usage: critical
Digital Signature, Certificate Sign, CRL Sign
X509v3 Extended Key Usage:
TLS Web Client Authentication, Code Signing
```
And the following certificate would have been rejected in the past and remains rejected now:
```
X509v3 extensions:
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Extended Key Usage:
Code Signing
```
Scylin232
force-pushed
the
bugfix/inclusive-eku-check
branch
from
August 14, 2026 05:16
2de0116 to
7f71ecb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey out there!
This PR updates the Key Usage and Extended Key Usage validation for EST-submitted certificates. Instead of requiring Digital Signature on KU and TLS Web Client Authentication on EKU to be the only present usages, the check now verifies that they are included among the others.
This change allows EST servers to extend CSRs with additional usages, such as
keyCertSign,cRLSign, orcodeSigning, without failing validation.E.G:
The following certificate would have been rejected in the past, but is now accepted:
And the following certificate would have been rejected in the past and remains rejected now: