gnutls_x509_crt_set_crq(3)
π gnutls_x509_crt_set_crq β the manual page, bestie edition π
okay so this is a page from the gnutls manual, and it's all about one very specific little function called gnutls_x509_crt_set_crq. sit down, grab a boba, we're doing X.509 today π§β¨
β¨ NAME β¨
gnutls_x509_crt_set_crq β it's an API function, bestie. that's the whole name. she's simple, she's iconic, she does one thing. π
πΈ SYNOPSIS πΈ
like, the whole vibe in one breath:
#include <gnutls/x509.h>
int gnutls_x509_crt_set_crq(gnutls_x509_crt_t crt, gnutls_x509_crq_t
crq);
yes she takes two args, yes she returns an int, no we are not okay about it π
π ARGUMENTS π
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. this is the glow-up target, the certificate that's about to receive some new info π«Άgnutls_x509_crq_t crqβ holds a certificate request. she's the source of the tea, the one bringing the content π¨
π¦ DESCRIPTION π¦
so here's what actually happens: this function will set the name and public parameters, plus all the extensions, from the given certificate request over onto the certificate. like, it's a full info-transfer moment. main character energy for real.
only RSA keys are currently supported. that's the limit, no cap. if you were hoping for something else, this is not the function, sorry babe π
and here's the big caveat that you do not wanna skip:
note that this function will only set the crq if it is self signed and the signature is correct. see gnutls_x509_crq_sign2(). so like, no self-sign, no signature verification, no setting. it's giving "vibe check first, then we proceed." π₯
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value. negative. as in, bad. as in, go read the error code, bestie π
π REPORTING BUGS π
found a bug? don't just scream into the group chat β 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. periodt. legal but chill. β¨
π 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/
iykyk β the real ones always check the manual π«Ά
and that's the page!! gnutls 3.8.13, page gnutls_x509_crt_set_crq(3) β mwah, go forth and set those certificate requests, bestie π
πβ¨
π¦ 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