GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST(3)
β¨ NAME β¨
gnutls_certificate_set_x509_system_trust β bestie, it's an API function, and it's here to load up your system's trusted CAs π
This one lives in the gnutls manual (yes, that gnutls, the TLS library of the people) π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_certificate_set_x509_system_trust(gnutls_certificate_credentials_t
cred);
π¦ ARGUMENTS π¦
gnutls_certificate_credentials_t credβ okay so this is agnutls_certificate_credentials_ttype, that's literally it, that's the whole vibe π
π DESCRIPTION π
So the way this works: this function adds the system's default trusted CAs, and it does that specifically so you can verify client or server certificates. Like, that's the whole point. Trust anchor collection time β¨
And if the system you're on is currently unsupported? Then GNUTLS_E_UNIMPLEMENTED_FEATURE gets returned. Not me getting rejected by the OS ππ
β RETURNS β
It gives you back the number of certificates processed π β or a negative error code if something went wrong. Negative = bad vibes, positive number = slay.
π SINCE π
3.0.20 β been iconic since 3.0.20, no cap π«Ά
π REPORTING BUGS π
Found a bug? Don't suffer in silence, tell the devs, they want to know 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. (Translation: it's free, go wild, just keep the receipts π§Ύβ¨)
π¦ 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, then bestie, just go here:
https://www.gnutls.org/manual/
okay that's the whole page, mwah π This was pulled straight from the gnutls manual, version 3.8.13 β go forth and trust some CAs responsibly, love u, bye π«Άππ
π¦ 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