diff --git a/cmd/step-cloudkms-init/main.go b/cmd/step-cloudkms-init/main.go index 0832d649..a09054c4 100644 --- a/cmd/step-cloudkms-init/main.go +++ b/cmd/step-cloudkms-init/main.go @@ -178,7 +178,7 @@ func createPKI(c *cloudkms.CloudKMS, project, location, keyRing string, protecti BasicConstraintsValid: true, MaxPathLen: 0, MaxPathLenZero: true, - Issuer: pkix.Name{CommonName: "Smallstep Root"}, + Issuer: root.Subject, Subject: pkix.Name{CommonName: "Smallstep Intermediate"}, SerialNumber: mustSerialNumber(), SubjectKeyId: mustSubjectKeyID(resp.PublicKey),