matchServiceIdentity
Checks whether a certificate covers the requested service identity.
Delegates to matchCertificateServiceIdentity — this overload accepts a single options object.
ts
function matchServiceIdentity(
input: MatchServiceIdentityInput,
): MatchServiceIdentityResultParameters
input:MatchServiceIdentityInput
Examples
ts
const result = matchServiceIdentity({
certificate: parsed,
serviceIdentity: { type: 'dns', value: 'example.com' },
});
if (!result.ok) console.error(result.error.message);