gnutls_x509_crq_export2(3)

πŸ’… gnutls_x509_crq_export2 β€” the group chat manual

okay so bestie, welcome to the gnutls manual page for gnutls_x509_crq_export2(3) πŸŽ€ this is the one that takes your lil' certificate request and yeets it out into the world as PEM or DER, no cap ✨


✨ NAME ✨

gnutls_x509_crq_export2 β€” API function


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crq_export2(gnutls_x509_crq_t crq, gnutls_x509_crt_fmt_t
format, gnutls_datum_t * out);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crq_t crq β€” this one should contain a gnutls_x509_crq_t type. it's literally the certificate request you're about to export, the main character of this whole operation πŸ’–
  • gnutls_x509_crt_fmt_t format β€” the format of output params. One of PEM or DER. pick your vibe ✨
  • gnutls_datum_t * out β€” will contain a certificate request PEM or DER encoded. this is where the goods go 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

This function will export the certificate request to a PEM or DER encoded PKCS10 structure. slay πŸ’…

The output buffer is allocated using gnutls_malloc(). yes bestie, it's on you to free it later, that's the deal 🀝

If the structure is PEM encoded, it will have a header of "BEGIN NEW CERTIFICATE REQUEST". iconic honestly πŸŽ€


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a negative number, that's not a vibe check you passed, that's a problem 😭

Since 3.1.3 β€” she's been around a minute, fr fr 🌈


πŸ› REPORTING BUGS πŸ›

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org

(if something's broken, tell the gnutls girlies, they 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.

like, go off, share it, just keep the receipt 🧾✨


πŸ”₯ 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/

πŸ’€ reminder bestie: the out buffer is yours to gnutls_free() β€” don't just leave it hanging, that's not main character energy, that's a memory leak πŸ™ˆ

and that's the whole page, periodt πŸŽ€ this lil' rewrite comes to you courtesy of gnutls version 3.8.13, and yeah the original footer said gnutls_x509_crq_export2(3) down there too β€” consider this your cute sign-off, mwah πŸ’‹ πŸ¦‹

πŸ“¦ where this page comes from