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