Skip to content

Work around broken VICALs and RICALs.#1807

Merged
sorotokin merged 1 commit into
mainfrom
1806-vical-ski
Jul 10, 2026
Merged

Work around broken VICALs and RICALs.#1807
sorotokin merged 1 commit into
mainfrom
1806-vical-ski

Conversation

@davidz25

@davidz25 davidz25 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

For VICALs and RICALs according to ISO 18013-5 the SKI (Subject Key Identifier) is present in both CertificateInfo / RICALCertificateInfo CBOR and the X.509 certificate itself. Our parsers use the CBOR value which is less than ideal for VICALs and RICALs that encode this field incorrectly. Instead, use the value from the certificate and log a warning if the two SKIs differ.

Fixes #1806.

@davidz25
davidz25 requested a review from sorotokin July 10, 2026 01:22
For VICALs and RICALs according to ISO 18013-5 the SKI (Subject Key
Identifier) is present in both `CertificateInfo` / `RICALCertificateInfo`
CBOR and the X.509 certificate itself. Our parsers use the CBOR value
which is less than ideal for VICALs and RICALs that encode this field
incorrectly. Instead, use the value from the certificate and log a
warning if the two SKIs differ.

Fixes #1806.

Test: Manually tested and unit tests.
Signed-off-by: David Zeuthen <zeuthen@google.com>
@davidz25 davidz25 changed the title VicalParser: Work around broken VICALs. Work around broken VICALs and RICALs. Jul 10, 2026
@sorotokin
sorotokin merged commit e89a56c into main Jul 10, 2026
3 checks passed
@sorotokin
sorotokin deleted the 1806-vical-ski branch July 10, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use SKI in X.509 from VICAL

2 participants