client-certificate-auth API Reference
client-certificate-auth API Reference / parsers / parseXfcc
Function: parseXfcc()
parseXfcc(
headerValue):ChainedPeerCertificate|null
Defined in: parsers.js:334
Parse Envoy XFCC (X-Forwarded-Client-Cert) structured header format. Format: Key=Value;Key=Value;... where Cert (single URL-encoded PEM) or Chain (URL-encoded multi-block PEM with the full chain incl. leaf) carry the certificate. Keys are case-insensitive. When both are present we prefer Chain because it carries more information, and link the chain via issuerCertificate.
Parameters
headerValue
string
XFCC formatted header value
Returns
ChainedPeerCertificate | null
Parsed certificate or null on failure