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 a gnutls_certificate_credentials_t type, 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:


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