GNUTLS_X509_CRT_GET_PRIVATE_KEY_USAGE_PERIOD(3)
π NAME π
gnutls_x509_crt_get_private_key_usage_period β bestie, this is an API function, and it's here to tell you when a certificate's private key is allowed to do its little thing β¨
It lives in the gnutls manual, section 3, so if you were hunting for it in the man pages, you found her π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_get_private_key_usage_period(gnutls_x509_crt_t cert,
time_t * activation, time_t * expiration, unsigned int * critical);
okay so it's literally just one include and one function call, we love a low-effort baddie π«Ά
π ARGUMENTS π
gnutls_x509_crt_t certβ should contain agnutls_x509_crt_ttype. like, that's the cert we're snooping on πtime_t * activationβ the activation time β°time_t * expirationβ the expiration time βunsigned int * criticalβ the extension status π
π¦ DESCRIPTION π¦
so what does she actually do?? This function will return the expiration and activation times of the private key of the certificate π₯
And it gets those from the PKIX extension 2.5.29.16 β so that extension has to be present, no cap. If it's not there, girl, she's not gonna magic it out of thin air π
β RETURNS β
- On success,
GNUTLS_E_SUCCESS(0) is returned π GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEif the extension is not present π (yep, told you)- otherwise a negative error value π
πΈ REPORTING BUGS πΈ
Found a bug? Report bugs 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. π«Ά iconic, honestly.
π 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, you ate π
β this was gnutls version 3.8.13, 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