Skip to content
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

Verify SignedData without root (an intermediate is trusted). #408

Open
supersasha opened this issue Jun 5, 2024 · 0 comments
Open

Verify SignedData without root (an intermediate is trusted). #408

supersasha opened this issue Jun 5, 2024 · 0 comments

Comments

@supersasha
Copy link

supersasha commented Jun 5, 2024

Hi guys!

  1. I have all the certificates in a SignedData structure except for the root CA's one. At the same time one of intermediate CA's certificates is trusted so that I seem don't need to have a root:

signer -> intermediate1 -> intermediate2 (trusted) -> root (absent)

Can I use SignedData.verify() to verify the chain (without having root)? The root is the "Microsoft Code Verification Root" which I'm not able to find.

UPD:
2) I've also noticed that there seems no difference between:

  • putting additional certificates to SignedData.certificates (say, after downloading them from InfoAccess unsecure HTTP (not HTTPS) URIs)
  • providing them in trustedCerts property of SignedDataVerifyParams

But as far as I understand there should be the significant difference between them:

  • in the first case we don't care if the certificates are forged -- this will be revealed during the verification procedure. We just provide here the absent certificates to build the chain from the signer up to the trusted certificate
  • in the second case we provide trusted certificates which we downloaded from trusted places like Microsoft or DigiCert website. We take the responsibility that the certificates are not forged.

Thank you!

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

No branches or pull requests

1 participant