mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
sign-verbatim should set use_csr_common_name to true (#2243)
This commit is contained in:
committed by
Jeff Mitchell
parent
ebfba76f98
commit
a76a49732d
@@ -52,7 +52,7 @@ func pathSign(b *backend) *framework.Path {
|
||||
|
||||
func pathSignVerbatim(b *backend) *framework.Path {
|
||||
ret := &framework.Path{
|
||||
Pattern: "sign-verbatim/" + framework.GenericNameRegex("role"),
|
||||
Pattern: "sign-verbatim" + framework.OptionalParamRegex("role"),
|
||||
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.UpdateOperation: b.pathSignVerbatim,
|
||||
@@ -124,6 +124,7 @@ func (b *backend) pathSignVerbatim(
|
||||
AllowIPSANs: true,
|
||||
EnforceHostnames: false,
|
||||
KeyType: "any",
|
||||
UseCSRCommonName: true,
|
||||
}
|
||||
|
||||
return b.pathIssueSignCert(req, data, role, true, true)
|
||||
|
||||
Reference in New Issue
Block a user