Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / parsers / parseRfc9440

Function: parseRfc9440()

parseRfc9440(headerValue): PeerCertificate | null

Defined in: parsers.js:349

Parse RFC 9440 format certificate (used by Google Cloud Load Balancer). Format: :base64-encoded-der: (colon-delimited byte sequence).

Parameters

headerValue

string

RFC 9440 formatted certificate

Returns

PeerCertificate | null

Parsed certificate or null on failure

See

https://datatracker.ietf.org/doc/html/rfc9440#section-2.1

Released under the MIT License.