Pike v8.0 release 1738

Method Standards.PKCS.Certificate.build_distinguished_name()


Method build_distinguished_name

variant Sequence build_distinguished_name(mapping args)


Method build_distinguished_name

variant Sequence build_distinguished_name(array args)

Description

Creates an ASN.1 Sequence with the distinguished name of the list of pairs given in args. Supported identifiers are

commonName
surname
countryName
localityName
stateOrProvinceName
organizationName
organizationUnitName
title
name
givenName
initials
generationQualifier
dnQualifier
emailAddress
Parameter args

Either a mapping that lists from id string to string or ASN.1 object, or an array with mappings, each containing one pair. No type validation is performed.