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 agnutls_x509_crq_ttype. 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 ofPEMorDER. pick your vibe β¨gnutls_datum_t * outβ will contain a certificate requestPEMorDERencoded. 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 π
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: theoutbuffer is yours tognutls_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
- 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