Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / helpers / allowFingerprints

Function: allowFingerprints()

allowFingerprints(fingerprints): ValidationCallback

Defined in: helpers.d.ts:42

Create a validation callback that allows certificates with matching fingerprints. Supports SHA-1 fingerprints (compared against cert.fingerprint) and SHA-256 fingerprints with "SHA256:" prefix (compared against cert.fingerprint256). Fingerprints without a prefix are treated as SHA-1.

Parameters

fingerprints

string[]

Allowed fingerprints

Returns

ValidationCallback

Released under the MIT License.