GNUTLS_X509_CRQ_SET_PRIVATE_KEY_USAGE_PERIOD(3)
π gnutls_x509_crq_set_private_key_usage_period(3) π
okay bestie so this one lives in the gnutls manual, section 3, and it's literally the glow-up your certificate request needs to say "hey, this key is only valid between these two moments" β¨ it's giving very specific, very intentional, very main character.
β¨ NAME β¨
gnutls_x509_crq_set_private_key_usage_period β API function π
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crq_set_private_key_usage_period(gnutls_x509_crq_t crq,
time_t activation, time_t expiration);
πΈ ARGUMENTS πΈ
gnutls_x509_crq_t crqβ a certificate of typegnutls_x509_crq_tπ¦ (yes bestie, the crq itself, hand it over)time_t activationβ the activation time β° like, when the clock startstime_t expirationβ the expiration time β and when it stops, no cap
π DESCRIPTION π
So this function will set the private key usage period extension (2.5.29.16). That's it. That's the whole job. It's a niche little extension and honestly? iconic of it.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value and you're gonna have to read it and deal, bestie. π
π«Ά REPORTING BUGS π«Ά
Found a bug? Not the vibe. Report it to <bugs@gnutls.org> π§
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. fr fr, go wild, just keep the notice. β¨
π§ 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/
ngl the real glow-up is reading the docs first. iykyk π
okay that's the whole page bestie, we ate and left no crumbs π this was page gnutls_x509_crq_set_private_key_usage_period(3) from gnutls 3.8.13 β mwah, bye, go set that usage period ππβ¨
π¦ 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