Skip to content

Bindings for gnutls_x509_crt_get_dn_by_oid and gnutls_x509_crt_get_issuer_dn_by_oid ?

Hello,

Currently i am facing the problem that I'd like to get only the CN part of a certificate's issuer/subject without having to parse a full DN manually.

The functions x509-certificate-dn and x509-certificate-issuer-dn already exist, but they return the full DN.

There are x509-certificate-dn-oid and x509-certificate-issuer-dn-oid which return the OID at an index but not the content.

There is also set-x509-certificate-dn-by-oid!, to set! a value by OID but not a way to get a value by OID, which seems a bit weird.

Thanks.

Edited by Dariqq