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