gnutls_x509_crl_sign(3)

πŸ’– gnutls_x509_crl_sign(3) πŸ’–

okay bestie, so this page lives in the gnutls manual and it's literally just called gnutls_x509_crl_sign β€” it's an API function, no cap. it's giving "sign a CRL and go", and honestly? iconic. πŸŽ€


✨ SYNOPSIS ✨

lowkey the whole thing is just this:

#include <gnutls/x509.h>

int gnutls_x509_crl_sign(gnutls_x509_crl_t crl, gnutls_x509_crt_t issuer,
                         gnutls_x509_privkey_t issuer_key);

three arguments, one function, zero drama. πŸ¦‹


🌸 ARGUMENTS 🌸

  • gnutls_x509_crl_t crl β€” bestie this one should contain a gnutls_x509_crl_t type, that's the whole vibe. it's the CRL getting signed. πŸ’…
  • gnutls_x509_crt_t issuer β€” this is the certificate of the certificate issuer. yes, the issuer's cert, not the key, not a vibe check, the actual cert. ✨
  • gnutls_x509_privkey_t issuer_key β€” and this cutie holds the issuer's private key. keep it safe, keep it secret, periodt. πŸ”

🫢 DESCRIPTION 🫢

so this function is the same as gnutls_x509_crl_sign2() with no flags, plus an appropriate hash algorithm. that's it, that's the tea. β˜•

the way that the hash algorithm used may vary between versions of GnuTLS β€” like, don't @ me, it's just how it is β€” and it's tied to the security level of the issuer's public key. so it's not a random pick, it's matched up. iykyk. 🌈


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned. slay! πŸ’–

otherwise you get a negative error value, which is the universe's way of saying "not today". 😭


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me being the messenger, but pls report it to <bugs@gnutls.org>. πŸ›

home page: https://www.gnutls.org β€” go say hi. 🏠


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, that's the whole rule. πŸ“œβœ¨


πŸ”₯ 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/

go forth and read, bestie. πŸ§šπŸ’œ


and that's the whole page!! brought to you by gnutls 3.8.13, dated with the gnutls_x509_crl_sign(3) energy it deserves. mwah. πŸ’…πŸŽ€πŸ’–

πŸ“¦ where this page comes from