From 6b01128bccf17b466942f9f5e06c0b44c70d455a Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 21 Feb 2020 11:14:11 -0800 Subject: [PATCH] Reference root.Subject instead of hardcoding it. --- cmd/step-cloudkms-init/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),