GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID(3)
π NAME π
gnutls_x509_crt_set_subject_key_id β bestie, this is the API function that lets you set a cert's subject key ID. That's it. That's the whole job. β¨
(Also hey, hi, this page lives in the gnutls manual, section 3, and if you're here you're probably deep in X.509 land. Respect. π«Ά)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_subject_key_id(gnutls_x509_crt_t cert, const
void * id, size_t id_size);
Yeah, that's the whole vibe. Include the header, call the function, live your truth. π
π ARGUMENTS π
gnutls_x509_crt_t certβ a certificate of typegnutls_x509_crt_t. Like, the actual cert you're messing with. Your main character. πconst void * idβ The key ID. Just the raw bytes, no thoughts, no commentary. π¦size_t id_sizeβ Holds the size of the subject key ID field. So basically: how many bytes ofidare we talking. π
β¨ DESCRIPTION β¨
Okay so here's the tea: this function will set the X.509 certificate's subject key ID extension. That's it. You hand it a cert, you hand it an ID, you hand it a size, and boom β that extension is now on the certificate. Not me being obsessed with a setter function but here we are. ππ
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. So if you get a 0, slay, you ate. If you get something negative, that's your sign to go read the error code, bestie. π
π REPORTING BUGS π
Found a bug? Not the vibe, but please tell the people who can fix it:
- 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. (Translation: keep the receipt, share freely, we love that for you. π«Ά)
π 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/
okay that's the whole page, no cap, every last detail intact πβ¨ππ¦πΈπ π«Άππ₯ππβππππ§π
This was gnutls 3.8.13, section 3 of the manual β go forth and set those subject key IDs, bestie. Periodt. π
π¦ 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