-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding of Authority Key Identifier #173
Comments
The null in the current draft seems weird. The current draft is supposed to be
I fixed that in a commit to main. |
The motivation to always include keyIdentifier is found in 5280: "The keyIdentifier field of the authorityKeyIdentifier extension MUST be included in all certificates generated by conforming CAs to facilitate certification path construction." -- https://datatracker.ietf.org/doc/html/rfc5280 With your proposal also cases where GeneralNames XOR CertificateSerialNumber are included could be handled. We considered this in the design, but concluded that it would add unwanted overhead both in encoding and in processing, especially given that we hadn't found any such certificates "out in the wild". Do you have use cases where one but not the other field is used, that you want to share? |
RFC 5280 also says
|
Would be good to know what is used in practice. My memory is that allowing all fields to independently be null increases code-complexity for compression |
I think this clause means the whole extension authorityKeyIdentifier could be absent, but not the |
I have also never seen a certificate with NULL keyidentiifer field in the authorityKeyIdentiifer (alias AKI). But as described under https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.1 ,
, an AKi may have the non-empty fields |
FYI The cases mentioned in #172 have been presented in their current form with their trade-offs, discussed and accepted by IETF meeting attendees at more than one IETF COSE meeting. Which, of course, is not to say that we can't discuss it again. |
I do not have strong option to change the syntax. But the CDDL need to be changed to be consistent with the text:
to
|
Assigned Lijun to propose a PR |
The current github version has already the fixed version. Thus I close this issue.
|
As in Page 14 (version -09)
To encode it in CBOR, either only
keyIdentifier
is present, or all three fields must be present.What is the reason to have this limitation? Changing KeyIdentifierArray as follows can also cover other situations:
The text was updated successfully, but these errors were encountered: