Plasma GitLab Archive
Projects Blog Knowledge

Module Netx509.X509_DN_string

module X509_DN_string: Netdn.DN_string 
Parser/printer for distnguished names as they may occur in X.509 certificates


For a given attribute lookup module L this module provides parser and printer for distinguished names in string format (RFC 4514).

This implementation is restricted to attributes using the ASN.1 types PrintableString, TeletexString, IA5String, UniversalString, BMPString, and UTF8String. It is not possible to parse hexencoded strings ('#' notation).

(NB. We'd need a generic BER printer for supporting this.)

val parse : string -> Netdn.dn
Parses the string (or fails). The string must use UTF-8 encoding.
val print : Netdn.dn -> string
Prints the DN (cannot fail), using UTF-8 encoding
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml