mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 20:17:59 +00:00
Remove check for using CSR values with non-CA certificate.
The endpoint enforces whether the certificate is a CA or not anyways, so this ends up not actually providing benefit and causing a bug. Fixes #1250
This commit is contained in:
@@ -512,10 +512,6 @@ func signCert(b *backend,
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if useCSRValues && !isCA {
|
|
||||||
return nil, certutil.UserError{Err: "cannot use CSR values with a non-CA certificate"}
|
|
||||||
}
|
|
||||||
|
|
||||||
creationBundle.IsCA = isCA
|
creationBundle.IsCA = isCA
|
||||||
creationBundle.UseCSRValues = useCSRValues
|
creationBundle.UseCSRValues = useCSRValues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user