Skip to content

Commit cd59eed

Browse files
authored
Ceremony: use pre-existing SKID during cross-signing (#8311)
When cross-signing a pre-existing root, the cross-sign's Subject Key Identifier field needs to exactly match the existing cert's Subject Key Identifier. Rather than recompute it, copy it directly from the "to-be-cross-signed" cert.
1 parent 5a5ae22 commit cd59eed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/ceremony/cert.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ func makeTemplate(randReader io.Reader, profile *certProfile, pubKey []byte, tbc
286286
case crossCert:
287287
cert.ExtKeyUsage = tbcs.ExtKeyUsage
288288
cert.MaxPathLenZero = tbcs.MaxPathLenZero
289+
// The SKID needs to match the previous SKID, no matter how it was computed.
290+
cert.SubjectKeyId = tbcs.SubjectKeyId
289291
}
290292

291293
for _, policyConfig := range profile.Policies {

0 commit comments

Comments
 (0)