Add PKCS#7 certificate-chain validation #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for PKCS#7/CMS SignedData signatures as an alternative to direct key-based verification. This enables a chain-of-trust model similar to UEFI Secure Boot and is Authenticode-compatible.
This adds a new optional 'format' property in the signature node, which can be used to select 'direct' (default, existing behavior) or 'pkcs7', as well as an integer 'generation' for revocation
For pkcs7 format, the certificate chain is embedded in the SignedData structure. Validation must include verification of the certificate chain verification up to trusted root, checking of the validity period and generation-based revocation.
Co-developed-by: Claude [email protected]