From a76a49732d421d38bcfedb50acd4a0c07d7636cd Mon Sep 17 00:00:00 2001 From: joe miller Date: Tue, 10 Jan 2017 06:47:59 -0800 Subject: [PATCH] sign-verbatim should set use_csr_common_name to true (#2243) --- builtin/logical/pki/path_issue_sign.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/logical/pki/path_issue_sign.go b/builtin/logical/pki/path_issue_sign.go index d07a3ec174..73247b381c 100644 --- a/builtin/logical/pki/path_issue_sign.go +++ b/builtin/logical/pki/path_issue_sign.go @@ -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)