Parsing subject/issuer strings in X.509

Viktor Dukhovni openssl-users at
Fri Jul 23 05:49:28 UTC 2021

> On 22 Jul 2021, at 9:29 pm, Philip Prindeville <philipp_subx at> wrote:
> I'm wondering what the function is that takes a string and returns X509_NAME with the attribute/value pairs of the parsed DN.

There is no such function in general, since the are many potential
string forms of X.509 names, not all of which are unambiguously
machine readable.

There are various functions for augmenting a partially built name
with an attribute-value pair, but the parsing of a string a list
of such attribute-value pairs is up to you. :-(


More information about the openssl-users mailing list