This commit is contained in:
Dmitriy Selyuzhitskiy 2026-05-19 06:31:00 -07:00 committed by GitHub
commit a483f80749
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -844,7 +844,7 @@ func validateCaKeyUsages(keyUsages []string) error {
invalidKeyUsages = append(invalidKeyUsages, fmt.Sprintf("unrecognized key usage %s", usage))
}
}
if invalidKeyUsages != nil {
if len(invalidKeyUsages) > 0 {
return errors.New(strings.Join(invalidKeyUsages, "; "))
}
return nil

3
changelog/31597.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:bug
builtin/logical/pki: don't return error for valid CA Key Usages on validation
```