gnutls_x509_crt_set_issuer_dn(3)
β¨ NAME β¨
gnutls_x509_crt_set_issuer_dn β bestie, this is the API function that sets the issuer DN on your certificate π (and yes, this whole page lives inside the gnutls manual, section 3, so consider that your vibe check π«Ά)
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crt_set_issuer_dn(gnutls_x509_crt_t crt, const char *
dn, const char ** err);
okay so like, one header, one function, three args, we love a low-effort include πΈ
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ the certificate, and it has to be of typegnutls_x509_crt_t. That's the whole personality trait. literally just a cert πconst char * dnβ a comma separated DN string following RFC4514. commas, bestie, commas matter β¨const char ** errβ this one points at the error position, if there even is one. like it'll tell you where things went wrong. not me being a snitch π
π DESCRIPTION π
This function will set the DN on the provided certificate. That's it, that's the job, main character energy π
The input string should be plain ASCII or UTF-8 encoded. No weird encodings, no chaos, we keep it clean π§
and if the DN parsing goes sideways? You get GNUTLS_E_PARSING_ERROR back. periodt. π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned β slay, zero, the good number π
Otherwise you get a negative error value, which is the cert equivalent of a "we need to talk" text π
π REPORTING BUGS π
Found a bug? Report it, bestie, the maintainers wanna know π«Ά
- 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. (so yes you can share it, just keep the receipts π)
πΈ 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 3.8.13, straight from the gnutls manual, gnutls_x509_crt_set_issuer_dn(3) π now go set some DNs, you've got this β¨π¦
π¦ 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