sign-verbatim should set use_csr_common_name to true (#2243)

This commit is contained in:
joe miller
2017-01-10 06:47:59 -08:00
committed by Jeff Mitchell
parent ebfba76f98
commit a76a49732d

View File

@@ -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)