Skip to content

client-certificate-auth API Reference


client-certificate-auth API Reference / parsers / parseHeaderValue

Function: parseHeaderValue() ​

parseHeaderValue(headerValue, encoding, options?): ChainedPeerCertificate | null

Defined in: parsers.js:541

Parse certificate from header value using specified encoding.

Parameters ​

headerValue ​

string

Raw header value

encoding ​

"url-pem" | "url-pem-aws" | "xfcc" | "base64-der" | "rfc9440"

Encoding format

options? ​

Forwarded to the encoding's parser.

chainInLeafHeader? ​

boolean

Returns ​

ChainedPeerCertificate | null

Parsed certificate or null on failure

Released under the MIT License.