Let’s say I would want to find all certificates that correspond to the chain of my leaf certificate. Is there a built-in function inside mbedtls for that?
Somethign like Input: Leaf Certificate - Output: Leaf Certificate - Sub CA of Leaf - Root CA of Sub CA
If not, what fields would I have to compare inside two certificates to deduce that the leaf certificate really is part of the SubCA / CA’s PKI.
Issuer Leaf == CA Subject
Leaf AKI == CA SKI