Reference root.Subject instead of hardcoding it.

This commit is contained in:
Mariano Cano 2020-02-21 11:14:11 -08:00
parent 32c2558b58
commit 6b01128bcc

View file

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