gnutls_x509_crt_check_issuer(3)

πŸ’– gnutls_x509_crt_check_issuer β€” bestie's guide to "who signed this cert" πŸ’–

okay so this one lives in the gnutls manual, and it's basically the vibes check for certificate parentage. let's get into it 🫢


✨ NAME ✨

gnutls_x509_crt_check_issuer β€” an API function, and no cap, its whole job is figuring out if one cert is the parent of another πŸ‘‘


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

unsigned gnutls_x509_crt_check_issuer(gnutls_x509_crt_t cert,
gnutls_x509_crt_t issuer);

✨ ARGUMENTS ✨

  • gnutls_x509_crt_t cert β€” the certificate you're like "hmm, who made u bestie?" about. this is the one getting checked πŸŽ€
  • gnutls_x509_crt_t issuer β€” the certificate of a possible issuer. like, the suspect. the candidate parent. the maybe-mom πŸ’…

✨ DESCRIPTION ✨

so here's the tea: this function checks whether the certificate you passed in was actually issued by the issuer you passed in. not vibes-based, it's literally comparing things:

  • the DN fields have to match
  • the authority key identifier and subject key identifier fields have to match

and here's the cute plot twist 🌸 β€” if you hand it the same certificate in both the cert and issuer slots, it'll check whether that certificate is self-signed. one cert, two roles, main character energy honestly.


✨ RETURNS ✨

it returns true (1) if the given certificate is issued by the given issuer, and false (0) if it's not. simple as that, periodt ✨


✨ REPORTING BUGS ✨

found a bug? don't suffer in silence bestie, report it to <bugs@gnutls.org> πŸ“§

home page is right here: https://www.gnutls.org 🌈


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. so like, go off, just keep the receipt πŸ§ΎπŸ’œ


✨ 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/

ok that's the whole page, no skips, no crumbs left behind πŸ“

and that's a wrap!! this was gnutls_x509_crt_check_issuer(3), page pulled from the gnutls manual, version 3.8.13 πŸ’– go check those issuers, bestie, and stay iconic πŸ‘‘βœ¨

πŸ“¦ where this page comes from