gnutls_x509_crq_sign(3)
β¨ gnutls_x509_crq_sign β¨
okay bestie, welcome to the gnutls manual π this one's a little function from the gnutls pages and it is literally an API function, no cap. it signs certificate requests. let's get into it π
πΈ NAME πΈ
gnutls_x509_crq_sign β it's an API function, bestie. that's the whole name-vibe. π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crq_sign(gnutls_x509_crq_t crq, gnutls_x509_privkey_t key);
likeβ¦ you gotta include the header first, obviously π
π ARGUMENTS π
gnutls_x509_crq_t crqβ bestie this one should contain agnutls_x509_crq_ttype. that's it, that's the requirement β¨gnutls_x509_privkey_t keyβ and this one holds a private key π keep it safe, okay? she's private for a reason.
π DESCRIPTION π
so here's the tea β this function is the same as gnutls_x509_crq_sign2() but with no flags, and it picks an appropriate hash algorithm for you. slay, she does the thinking so you don't have to π
but the hash algorithm used? may vary between versions of GnuTLS π and it is tied to the security level of the issuer's public key. so like, don't hardcode your assumptions about which hash you're getting, fr fr.
β οΈ known limitation alert β οΈ a newly-signed request will not be fully functional (e.g., for signature verification) until it is exported and re-imported. yes bestie, you have to do the little round trip. it's giving "have you tried turning it off and on again" but for certificate requests π
β RETURNS β
- on success,
GNUTLS_E_SUCCESS(0) is returned π periodt. - otherwise, you get a negative error value π read it, don't ignore it.
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the girlies:
- 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. (iconic behavior honestly, we love a permissive queen π)
π 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, bestie, just visit:
https://www.gnutls.org/manual/
and that's the whole vibe check β
this page came straight out of the gnutls manual, version 3.8.13, filed under gnutls_x509_crq_sign(3) π go sign something, you absolute main character π¦β¨
π¦ 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