Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / helpers / allowIssuer

Function: allowIssuer()

allowIssuer(match): ValidationCallback

Defined in: helpers.js:89

Create a validation callback that allows certificates with matching issuer fields. All specified fields must match (partial matching).

Parameters

match

Issuer fields to match

C?

string

CN?

string

L?

string

O?

string

OU?

string

ST?

string

Returns

ValidationCallback

Example

ts
app.use(clientCertificateAuth(allowIssuer({ O: 'My Company', CN: 'Internal CA' })));

Released under the MIT License.