gnutls_x509_crq_set_key_rsa_raw(3)
π NAME π
gnutls_x509_crq_set_key_rsa_raw β bestie, it's an API function π and yes we're about to make your cert request hold an RSA public key, no cap.
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crq_set_key_rsa_raw(gnutls_x509_crq_t crq, const
gnutls_datum_t * m, const gnutls_datum_t * e);
like. two little datums and a crq. that's the whole vibe. π¦
π«Ά ARGUMENTS π«Ά
gnutls_x509_crq_t crqβ okay so this one should contain agnutls_x509_crq_ttype. it's the cert request we're dressing up, she's the main character here πconst gnutls_datum_t * mβ this holds the modulus. big number energy π₯const gnutls_datum_t * eβ and this one holds the public exponent. tiny number, huge responsibility π
πΈ DESCRIPTION πΈ
the way that this function literally takes the public parameters from the given private key and sets them onto the request?? obsessed. it's giving "here's my public half, pls put it in the CSR." π
and, ngl, only RSA keys are currently supported. that's the whole list. if you showed up with something else, bestieβ¦ no. π
β RETURNS β
slay case: on success you get GNUTLS_E_SUCCESS (0) back, iconic β¨
not-slay case: otherwise it hands you a negative error value, which is the API equivalent of "we need to talk" π
π SINCE π
2.6.0 β a vintage, fr fr. she's been around. π
π REPORTING BUGS π
found a bug? tell the girlies at <bugs@gnutls.org> π«Ά
home page: https://www.gnutls.org β go say hi π
π 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. (that's the legal tea, and it's genuinely so generous of them π)
π₯ 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, then bestie, just visit:
https://www.gnutls.org/manual/
iykyk π
okay that's the whole page, you ate it, mwah π β this was gnutls_x509_crq_set_key_rsa_raw(3) from the gnutls manual, version 3.8.13. go set some RSA public params, queen π§β¨
π¦ 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