gnutls_x509_crt_get_spki(3)
π gnutls_x509_crt_get_spki(3) π
okay bestie, welcome to the gnutls manual β yes, that gnutls, the GNU TLS one, and this page is literally called gnutls_x509_crt_get_spki. it's giving "I just want to know what's inside this certificate's public key" energy and honestly? relatable. π
β¨ NAME β¨
gnutls_x509_crt_get_spki β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_spki(gnutls_x509_crt_t cert, gnutls_x509_spki_t
spki, unsigned int flags);
yes the line break in the middle of the parameter list is real, that's just how it's written, don't come for me π
π¦ ARGUMENTS π¦
gnutls_x509_crt_t certβ a certificate of typegnutls_x509_crt_t. that's your girl, the cert we're snooping on πgnutls_x509_spki_t spkiβ a SubjectPublicKeyInfo structure of typegnutls_x509_spki_t. this is where the public key info is gonna land, so it has to exist first π«Άunsigned int flagsβ must be zero. that's it. zero. nothing else. no secret flag combos, no main character exceptions β
π DESCRIPTION π
so like, this function returns the public key information of an X.509 certificate. that's the whole vibe. π₯
β οΈ heads up bestie: the spki you pass in must be initialized first. not optional. if you hand it an uninitialized one, that's on you, and we don't do that here π
β SINCE β
3.6.0 β she's been around a minute, lowkey iconic π
π REPORTING BUGS π
found a bug? not me gatekeeping β report it, fr fr:
- 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. (yes, royalty-free, no cap, just keep the notice π)
π 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/
and that's the whole page, bestie β gnutls_x509_crt_get_spki, gnutls version 3.8.13, page gnutls_x509_crt_get_spki(3), signing off. go get that public key info, you absolute icon π«Άβ¨π
π¦ 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