Checks a certificate chain from a COSE header against oid4vp.mdocTrustAnchors.
oid4vp.mdocTrustAnchors
the x5chain certificates, leaf first, as DER
x5chain
the anchors, PEM
milliseconds
Optional
{ ok, leaf, anchorPem, reason }; leaf is the leaf as certificateFromDer() makes it
{ ok, leaf, anchorPem, reason }
leaf
certificateFromDer()
Checks a certificate chain from a COSE header against
oid4vp.mdocTrustAnchors.