Skip to main content

parseDistinguishedName

@webda/core


Function: parseDistinguishedName()

parseDistinguishedName(name): object

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

Parse a distinguished name as formatted by Node.js X509Certificate (one "KEY=value" per line)

Parameters​

name​

string

the formatted name

Returns​

object

the attributes and the one-line distinguished name

attributes​

attributes: Record<string, string | string[]>

dn​

dn: string