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,
|
BasicConstraintsValid: true,
|
||||||
MaxPathLen: 0,
|
MaxPathLen: 0,
|
||||||
MaxPathLenZero: true,
|
MaxPathLenZero: true,
|
||||||
Issuer: pkix.Name{CommonName: "Smallstep Root"},
|
Issuer: root.Subject,
|
||||||
Subject: pkix.Name{CommonName: "Smallstep Intermediate"},
|
Subject: pkix.Name{CommonName: "Smallstep Intermediate"},
|
||||||
SerialNumber: mustSerialNumber(),
|
SerialNumber: mustSerialNumber(),
|
||||||
SubjectKeyId: mustSubjectKeyID(resp.PublicKey),
|
SubjectKeyId: mustSubjectKeyID(resp.PublicKey),
|
||||||
|
|
Loading…
Reference in a new issue