[openssl-users] C++ How to parse Subject Directory Attributes Extension?
Matthias Ballreich
Matthias.Ballreich at outlook.de
Sun Apr 30 11:44:48 UTC 2017
Hi there,
can anyone tell me how to parse a the Subject Directory Attribute Extension of a X509-Certificate in C++ with OpenSSL? I don't found any documentation or piece of code in the Github Repo of OpenSSL.
I read the Extension this way:
int loc = X509_get_ext_by_NID(cert, NID_subject_directory_attributes, -1);
X509_EXTENSION *ex = X509_get_ext(cert, loc);
But i stuck on how to continue and get the TypeValue-Stuff.
Would be very helpful if someone can help me.
thanks and best regards
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20170430/24b5b491/attachment.html>
More information about the openssl-users
mailing list