forked from TrueCloudLab/certificates
Reference root.Subject instead of hardcoding it.
This commit is contained in:
parent
32c2558b58
commit
6b01128bcc
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue