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 type gnutls_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 🫢


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