gnutls_x509_crt_set_ca_status(3)
β¨ NAME β¨
gnutls_x509_crt_set_ca_status β an API function π
(and it's literally here to tell the world whether your cert is a CA or not, bestie)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_ca_status(gnutls_x509_crt_t crt, unsigned int
ca);
π ARGUMENTS π
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t, aka the lil guy you're editing π«Άunsigned int caβtrue(1) orfalse(0). Which one you pass depends on the Certificate authority status you want. Slay responsibly. π
π DESCRIPTION π
Okay so this function will set the basicConstraints certificate extension. That's it, that's the job, no cap. β¨
Heads up tho: if you also want to control thepathLenConstraintfield, usegnutls_x509_crt_set_basic_constraints()instead β this one won't do it for you, bestie. π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned β iconic. Otherwise you get a negative error value, which is giving "something went wrong" energy. π
π¦ REPORTING BUGS π¦
Found a bug? Report it to <bugs@gnutls.org>. π
Home page: https://www.gnutls.org β go say hi. π
π 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. (fr fr, no strings attached π)
β 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/
And that's the whole page, bestie!! This was the <code>gnutls</code> manual, version <code>3.8.13</code>, and the page was <code>gnutls_x509_crt_set_ca_status(3)</code> β now go set some basicConstraints and be the main character of your PKI. π§πβ¨
π¦ 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