gnutls_x509_cr...expiration_time(3)
π gnutls_x509_cr...expiration_time(3) π
okay bestie, so this is one of those pages from the gnutls manual β the TLS/SSL library that literally holds the internet together, no big deal. this one's about telling a certificate when it's time to say bye-bye. β¨
β¨ NAME β¨
gnutls_x509_crt_set_expiration_time β an API function, and yes she's a queen for it π
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crt_set_expiration_time(gnutls_x509_crt_t cert, time_t exp_time);
πΈ ARGUMENTS πΈ
gnutls_x509_crt_t certβ a certificate of typegnutls_x509_crt_t. that's your little certificate baddie, the one you're about to give an expiry date. π¦time_t exp_timeβ The actual time. like, the real actual time, fr fr. this is the moment you want her to expire. β°
π DESCRIPTION π
This function will set the time this Certificate will expire. the way that this just straight-up hands your cert her expiration date⦠iconic.
and here's the lil plot twist: setting an expiration time to (time_t)-1 will set to the no well-defined expiration date value. so (time_t)-1 is the "idk bestie, no real date here" option. it's giving undefined-vibes-on-purpose. π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a 0, she ate. if you get a negative number, that's a whole red flag and you gotta check yourself. π
π«Ά REPORTING BUGS π«Ά
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
not me telling you to email the maintainers but likeβ¦ if something's broken, tell them, they want to know π§
π 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.
π 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 version 3.8.13, page gnutls_x509_cr...expiration_time(3). go forth and expire your certificates responsibly. periodt. ππβ¨
π¦ 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