mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Allow SignCert callers to override CSR signature checks (#27914)
- We are leveraging this new feature flag to ignore the CSR's signature as we are constructing a CSR based on the information from a CMPv2 message.
This commit is contained in:
@@ -1186,9 +1186,10 @@ func signCertificate(data *CreationBundle, randReader io.Reader) (*ParsedCertBun
|
||||
return nil, errutil.UserError{Err: "nil csr given to signCertificate"}
|
||||
}
|
||||
|
||||
err := data.CSR.CheckSignature()
|
||||
if err != nil {
|
||||
return nil, errutil.UserError{Err: "request signature invalid"}
|
||||
if !data.Params.IgnoreCSRSignature {
|
||||
if err := data.CSR.CheckSignature(); err != nil {
|
||||
return nil, errutil.UserError{Err: "request signature invalid"}
|
||||
}
|
||||
}
|
||||
|
||||
result := &ParsedCertBundle{}
|
||||
|
||||
Reference in New Issue
Block a user