gnutls_x509_crt_get_issuer_dn2(3)
π gnutls_x509_crt_get_issuer_dn2(3) π
okay bestie, welcome to the gnutls manual, section 3 β¨ this one's all about pulling the issuer name off a certificate, and it's honestly kind of a glow-up function π«Ά
πΈ NAME πΈ
gnutls_x509_crt_get_issuer_dn2 β API function π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_get_issuer_dn2(gnutls_x509_crt_t cert,
gnutls_datum_t * dn);
π ARGUMENTS π
gnutls_x509_crt_t certβ this one should contain agnutls_x509_crt_ttype, like, that's its whole job πgnutls_datum_t * dnβ a pointer to a structure that's gonna hold the name. heads up bestie, you must free it usinggnutls_free()β no leaving it hanging, that's not the vibe π
π¦ DESCRIPTION π¦
So this function will allocate a buffer and copy the name of the issuer of the Certificate. slay. π
The name comes out in the form "C=xxxx,O=yyyy,CN=zzzz", exactly as described in RFC4514. The output string is ASCII or UTF-8 encoded, depending on what the certificate data is giving π
β οΈ but real talk β this function does not output a fully RFC4514 compliant string. if that's what you need, go see gnutls_x509_crt_get_issuer_dn3() instead. iykyk π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, and that's your sign something went sideways π
β SINCE β
3.1.10 β she's been iconic since way back, no cap π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>. π¬
Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. π«Ά
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie β¨ this was gnutls_x509_crt_get_issuer_dn2(3) from the gnutls manual, version 3.8.13 β go read your certs' issuer names responsibly, mwah π
ππ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms