GNUTLS_PKCS11_GET_RAW_ISSUER_BY_SUBJECT_KEY_ID(3)
β¨ NAME β¨
gnutls_pkcs11_get_raw_issuer_by_subject_key_id β bestie, it's an API function π
(also hi, this is a page from the gnutls manual, section 3 π)
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_get_raw_issuer_by_subject_key_id(const char * url,
const gnutls_datum_t * dn, const gnutls_datum_t * spki, gnutls_datum_t *
issuer, gnutls_x509_crt_fmt_t fmt, unsigned int flags);
πΈ ARGUMENTS πΈ
const char * urlβ a PKCS 11 url that identifies a token, like it's pointing at the specific token you're vibing with πconst gnutls_datum_t * dnβ the DN you're searching for. it can beNULL, no pressure, it's optional π«Άconst gnutls_datum_t * spkiβ the subject key ID you're hunting for πgnutls_datum_t * issuerβ this one will hold the issuer, if there is one, in an allocated buffer. so like, it hands you the goods β¨gnutls_x509_crt_fmt_t fmtβ the format of the exported issuer πunsigned int flagsβ use zero, or flags fromGNUTLS_PKCS11_OBJ_FLAGπ
π DESCRIPTION π
okay so here's the tea β this function will return the certificate with the given DN and spki, if it's stored in the token. fr fr.
by default, only the ones marked as trusted issuers get returned. it's giving exclusive π
but if you want any issuer to be returned, you specify GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in flags. that's the unlock π
and the reason the function's name includes "issuer"? because it can be used to discover issuers of certificates. iykyk π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value π (as in, a negative number. not negative vibes. well, also negative vibes.)
π SINCE π
3.4.2 β an icon, honestly π
π₯ REPORTING BUGS π₯
found a bug? not you being the main character of QA π«Ά 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, go visit
https://www.gnutls.org/manual/
ngl bestie, if you read this far you're lowkey a PKCS 11 legend π§
and that's a wrap on this page from the gnutls manual, version 3.8.13 β slay, stay curious, and may your issuers always be discoverable ππΈπ¦
π¦ 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