diff --git a/builtin/credential/cert/path_certs.go b/builtin/credential/cert/path_certs.go index a56c5c8ae4..c793564a9e 100644 --- a/builtin/credential/cert/path_certs.go +++ b/builtin/credential/cert/path_certs.go @@ -97,6 +97,11 @@ func (b *backend) pathCertWrite( policies[i] = strings.TrimSpace(p) } + // Default the display name to the certificate name if not given + if displayName == "" { + displayName = name + } + if len(policies) == 0 { return logical.ErrorResponse("policies required"), nil }