gnutls_x509_crl_sign2(3)
π gnutls_x509_crl_sign2 β the glow-up your CRL was waiting for
okay bestie, gather round, because we're doing the final step of a certificate revocation list and it's lowkey the most iconic part. this is page gnutls_x509_crl_sign2(3) from the gnutls manual, and yes, it's giving "last boss of the CRL pipeline" energy. π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crl_sign2(gnutls_x509_crl_t crl, gnutls_x509_crt_t
issuer, gnutls_x509_privkey_t issuer_key, gnutls_digest_algorithm_t dig,
unsigned int flags);
π«Ά ARGUMENTS π«Ά
gnutls_x509_crl_t crlβ this one should be holding agnutls_x509_crl_ttype, like, that's its whole job.gnutls_x509_crt_t issuerβ the certificate of the certificate issuer. the source of truth, the origin story.gnutls_x509_privkey_t issuer_keyβ holds the issuer's private key. guard this with your life, bestie. πgnutls_digest_algorithm_t digβ the message digest to use.GNUTLS_DIG_SHA256is the safe choice unless you know what you're doing. and like, genuinely know. not vibes-know. πunsigned int flagsβ must be0. that's it. that's the whole vibe check.
πΈ DESCRIPTION πΈ
so this function signs the CRL with the issuer's private key, and it also copies the issuer's information into the CRL. two-for-one, we love a multitasker. β¨
this must be the last step in a certificate CRL, because everything you set before this point is now officially signed. no going back, no edits, the ink is dry. periodt.
β οΈ heads up: a known limitation of this function is that a newly-signed CRL will not be fully functional (like, for signature verification, for example) until it is exported and re-imported. yes, really. the way that it just needs a lil round trip first... π
after GnuTLS 3.6.1, the value of dig may be GNUTLS_DIG_UNKNOWN, and in that case a suitable β but reasonable for the key algorithm β digest will be selected for you. so like, autopilot mode. π¦
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the API's way of saying "not today, bestie." π
π REPORTING BUGS π
found a bug? spill the tea to bugs@gnutls.org. π§
home page, aka the main character's profile: 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. so go off, 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, visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie!! π this was gnutls_x509_crl_sign2(3) from the gnutls manual, version 3.8.13. go sign something and slay responsibly. πβ¨π¦π
π¦ 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