mtlsAuthenticateFingerprint
function mtlsAuthenticateFingerprint(options): AuthenticateFn;Defined in: src/http/mtls.ts:248
Create an mTLS authenticate callback using certificate fingerprint lookup.
Computes the certificate fingerprint and looks it up in the provided mapping. Fingerprints must be lowercase hex without colons.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options | { algorithm?: string; checkExpiry?: boolean; domain?: string; fingerprints: | ReadonlyMap<string, AuthContext> | Record<string, AuthContext>; header?: string; } |
options.algorithm? | string |
options.checkExpiry? | boolean |
options.domain? | string |
options.fingerprints | | ReadonlyMap<string, AuthContext> | Record<string, AuthContext> |
options.header? | string |