Skip to content

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,
): MatchServiceIdentityResult

Parameters

Examples

ts
const result = matchServiceIdentity({
  certificate: parsed,
  serviceIdentity: { type: 'dns', value: 'example.com' },
});
if (!result.ok) console.error(result.error.message);

Released under the MIT License.