gnutls_pkcs12_bag_get_key_id(3)
π NAME π
gnutls_pkcs12_bag_get_key_id β the API function that pulls a key ID out of your PKCS#12 bag, bestie β¨
(yeah it's from the gnutls manual, and yes it's exactly as niche as it sounds π«Ά)
π SYNOPSIS π
#include <gnutls/pkcs12.h>
int gnutls_pkcs12_bag_get_key_id(gnutls_pkcs12_bag_t bag, unsigned indx,
gnutls_datum_t * id);
πΈ ARGUMENTS πΈ
gnutls_pkcs12_bag_t bagβ the bag itself, the whole vibe container πunsigned indxβ which element of the bag you're adding the id for, like picking your fave out of the lineup πgnutls_datum_t * idβ the spot where the ID gets copied to, and heads up, you treat it asconstπ«Ά
π¦ DESCRIPTION π¦
okay so, this function hands you back the key ID of whichever bag element you pointed at with indx. that's it, that's the whole thing β¨
and why do you even care about a key ID? because it's usually the lil name tag that lets you tell your local private key apart from the certificate pair that goes with it π. it's giving matching friendship bracelets but for crypto, fr fr.
β RETURNS β
if everything goes right you get GNUTLS_E_SUCCESS (which is 0) back, slay π
otherwise? negative error value, or a negative error code on error. so basically: zero = good, negative = not good, no cap π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- 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. (iconic behaviour honestly, they ate π )
π 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page bestie!! this was gnutls version 3.8.13, page gnutls_pkcs12_bag_get_key_id(3), and it's giving certified classic. go get those key IDs, you got this π«Άβ¨π
π¦ 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