gnutls_x509_crq_set_spki(3)
π gnutls_x509_crq_set_spki(3) π
okay bestie, welcome to the gnutls manual, this one's from the gnutls pages and it's all about making your cert request's public key situation very explicit. slay.
β¨ NAME β¨
gnutls_x509_crq_set_spki β it's an API function, and it's here to set the SPKI on your certificate request. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_set_spki(gnutls_x509_crq_t crq, const
gnutls_x509_spki_t spki, unsigned int flags);
π ARGUMENTS π
gnutls_x509_crq_t crqβ a certificate request of typegnutls_x509_crq_t. that's the thing you're editing, bestie.const gnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure of typegnutls_x509_spki_t. this is the info you're handing over.unsigned int flagsβ must be zero. like, must. don't get creative. π
π¦ DESCRIPTION π¦
so this function will set the certificate request's subject public key information explicitly. it's giving "I know exactly what I want."
the way that this is intended to be used: in the cases where a single public key (for example, RSA) can be used for multiple signature algorithms β think RSA PKCS1-1.5, and RSA-PSS. one key, multiple vibes. iconic.
and if you wanna export the public key (i.e., the SubjectPublicKeyInfo part, the whole point), go check out gnutls_pubkey_import_x509(). that's your girl for that job.
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the universe's way of saying "not today." π
π SINCE π
3.6.0 β she's been around since 3.6.0, a true veteran of the game.
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the gnutls 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. periodt. π«Ά
π₯ 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/
no extra tips, no invented options, just the facts in a cuter outfit. that's the rule. π
okay that's the whole page bestie!! this was the gnutls manual, version 3.8.13, and yes, this is gnutls_x509_crq_set_spki(3). go forth and set those SPKIs, 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