gnutls_x509_crt_set_dn(3)
π gnutls_x509_crt_set_dn(3) π
okay so bestie, welcome to the gnutls manual, page for gnutls_x509_crt_set_dn. this one's a lil function that gives your certificate a whole identity β a DN, a Distinguished Name, the whole β¨who even are youβ¨ of the cert world. let's get into it π«Ά
πΈ NAME πΈ
gnutls_x509_crt_set_dn β API function. yes that's it, that's the name, she's literally just an API function and she's serving π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_set_dn(gnutls_x509_crt_t crt, const char * dn, const
char ** err);
π ARGUMENTS π
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. this is the cert you're about to glow up β¨const char * dnβ a comma separated DN string (RFC4514). so like, the whole vibe of who this cert is, in one lil comma-separated string πΈconst char ** errβ indicates the error position (if any). if the parsing goes sideways, she'll point at where it went sideways π
π¦ DESCRIPTION π¦
This function will set the DN on the provided certificate. periodt, that's the job π
The input string should be plain ASCII or UTF-8 encoded. no weird encodings bestie, keep it clean. and if the DN parsing trips up, you get GNUTLS_E_PARSING_ERROR back. not a vibe, but at least it tells you π
Note that DNs are not expected to hold DNS information, and thus no automatic IDNA conversions are attempted when using this function. so like, don't be putting a whole domain in there and expecting magic. If that is required (e.g., store a domain in CN), process the corresponding input with gnutls_idna_map(). that's the function for that job, iykyk π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. zero means slay, negative means go check err and cry a lil π₯²
π REPORTING BUGS π
found a bug? not me being the bug reporter π 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. fr fr, take it, remix 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_x509_crt_set_dn(3) from gnutls version 3.8.13 β go forth and name your certificates, 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