From fbcad150aa3dba3b33ab2f5474fac8bc3752f97d Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sat, 17 Feb 2018 21:01:36 -0500 Subject: [PATCH] Fix missing CommonName in subject generation --- builtin/logical/pki/cert_util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/logical/pki/cert_util.go b/builtin/logical/pki/cert_util.go index 09b0317b3aa1..ee1d0f970246 100644 --- a/builtin/logical/pki/cert_util.go +++ b/builtin/logical/pki/cert_util.go @@ -842,6 +842,7 @@ func generateCreationBundle(b *backend, data *dataBundle) error { } subject := pkix.Name{ + CommonName: cn, Country: strutil.RemoveDuplicates(data.role.Country, false), Organization: strutil.RemoveDuplicates(data.role.Organization, false), OrganizationalUnit: strutil.RemoveDuplicates(data.role.OU, false),