-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
One of the goals of the certificate chain cleaner is to ensure there's at least one trust anchor in the cleaned chain, so I'm wondering at the order of checks at
| for (i = 1; i < chain.length; i++) { |
Would it be better to put the isTrustRoot(chain[i]) check inside the if (isValidLink(chain[i], chain[i - 1])) block, rather than before it? Otherwise, it seems like trustedChain could be set to true without a verified trust anchor in the chain.
Apologies if this is a non-issue, because I have a feeling there's probably something I've overlooked 😄 and thanks for the library!
Metadata
Metadata
Assignees
Labels
No labels