mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-10 17:32:29 -04:00
Merge 3ab81793ce into 0a5e29e96f
This commit is contained in:
commit
a483f80749
2 changed files with 4 additions and 1 deletions
|
|
@ -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
3
changelog/31597.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
builtin/logical/pki: don't return error for valid CA Key Usages on validation
|
||||
```
|
||||
Loading…
Reference in a new issue