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 a gnutls_x509_crq_t type. 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 Β© 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