Skip to main content

parseClientCertificateHeader

@webda/core


Function: parseClientCertificateHeader()

parseClientCertificateHeader(value, format?): X509Certificate

Defined in: packages/core/src/contexts/clientcertificate.ts:211

Parse the client certificate forwarded by a proxy in a header

Parameters​

value​

string

the header value

format?​

ClientCertificateHeaderFormat = "traefik"

the header format

Returns​

X509Certificate

the leaf certificate, undefined when the header holds none

Throws​

Error when the header is malformed