GNUTLS_PKCS11_GET_RAW_ISSUER_BY_DN(3)
π gnutls_pkcs11_get_raw_issuer_by_dn(3) π
okay bestie, welcome to the gnutls manual β this one's page for gnutls_pkcs11_get_raw_issuer_by_dn, a certified API function that goes digging through your PKCS 11 token for the issuer cert matching a DN. yes it's a mouthful. no we're not shortening it. iykyk π«Ά
β¨ NAME β¨
gnutls_pkcs11_get_raw_issuer_by_dn β API function. that's it, that's the name, and yes it's a whole entire sentence π
π SYNOPSIS π
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_get_raw_issuer_by_dn(const char * url, const
gnutls_datum_t * dn, gnutls_datum_t * issuer, gnutls_x509_crt_fmt_t fmt,
unsigned int flags);
she's long, she's specific, she ate. π
π¦ ARGUMENTS π¦
const char * urlβ a PKCS 11 url that identifies a token. this is your "where do i even look" pointer, periodt.const gnutls_datum_t * dnβ the DN you're searching for. the whole reason we're here.gnutls_datum_t * issuerβ will hold the issuer if any, in an allocated buffer. so like, she allocates, you're responsible for her later. main character energy but also a little high-maintenance πgnutls_x509_crt_fmt_t fmtβ the format of the exported issuer. you pick, she delivers.unsigned int flagsβ use zero, or flags fromGNUTLS_PKCS11_OBJ_FLAG. your call bestie.
π DESCRIPTION π
so here's the tea: this function will return the certificate with the given DN, if it is stored in the token. π
by default, only things marked as trusted issuers get returned. like, she has standards. if you want any issuer to come back, you gotta specify GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in flags. no cap.
and the name of the function includes issuer because it can be used to discover issuers of certificates. that's the whole lore. lowkey iconic of her to explain herself. π
π 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.4.0 β she's been here since 3.4.0, she's an elder, show some respect π§
π REPORTING BUGS π
report bugs to <bugs@gnutls.org>.
home page: https://www.gnutls.org
(be nice in the email, the maintainers are people too π«Ά)
π 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. slay, and legally so. β¨
πΈ 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/
heads up bestie: this whole page lives in thegnutlsmanual,gnutls_pkcs11_get_raw_issuer_by_dn(3)section, and it's from gnutls 3.8.13. go forth, find those issuers, and remember β if she returns negative, that's not a vibe check you passed π π
π¦ 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