gnutls_x509_crt_sign(3)
π gnutls_x509_crt_sign(3) β the "please sign this cert bestie" function π
okay so this is a page from the gnutls manual, section 3 (library calls, iykyk), and it's all about gnutls_x509_crt_sign. it's giving "cryptographic notary" energy and honestly? iconic. π
β¨ NAME β¨
gnutls_x509_crt_sign β it's an API function, periodt. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_sign(gnutls_x509_crt_t crt, gnutls_x509_crt_t
issuer, gnutls_x509_privkey_t issuer_key);
look at her. three little params. so tidy. π
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ bestie, this is a certificate, and its type is literallygnutls_x509_crt_t. it's the one getting signed. main character of the operation honestly πgnutls_x509_crt_t issuerβ this is the certificate of the certificate issuer. yeah. the issuer's cert. we love a self-explanatory name fr fr πgnutls_x509_privkey_t issuer_keyβ and this bad boy holds the issuer's private key. guard it with your life, bestie, it's a private key for a reason π
π DESCRIPTION π
okay so here's the tea: this function is the same as gnutls_x509_crt_sign2() β but with no flags, and with an appropriate hash algorithm chosen for you. it's the low-effort, high-reward version. slay. β¨
and about that hash algorithm β lowkey important β the hash algorithm used may vary between versions of GnuTLS, and it's tied to the security level of the issuer's public key. so don't go assuming it's always gonna be the same one, bestie. it vibes with your key's security level. π₯
β RETURNS β
- on success?
GNUTLS_E_SUCCESSβ that's a0, and it's giving "we ate" π - otherwise you get a negative error value. which is giving "not me getting a negative number π"
π REPORTING BUGS π
found a bug? spill it to <bugs@gnutls.org>. they wanna hear about it fr.
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. (basically: keep the receipts, and you're good π«Ά)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, then go visit:
https://www.gnutls.org/manual/
that's the link. go. click. you're welcome. π
no cap, this is the whole page. every option, every argument, every word β all still here. the vibe just got a glow-up. π
and that's a wrap, bestie π§ β this page came to you from the gnutls manual, version 3.8.13, and its lil footer signature reads gnutls_x509_crt_sign(3). go forth and sign those certs 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