Answers whether a certificate's subjectAltName names what a caller expects
(RFC 9525: never the common name). A DN is compared by the door, through
common/certificate_subject.js, which requires this module.
Parameters
cert: any
PEM text, DER bytes or a parsed certificate
expected: any
{ dns, ip, uri, email }; every member given must match
Returns boolean
true when each member given matches, false when nothing was given
Answers whether a certificate's subjectAltName names what a caller expects (RFC 9525: never the common name). A DN is compared by the door, through
common/certificate_subject.js, which requires this module.