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 type gnutls_x509_crq_t πŸ¦‹ (yes bestie, the crq itself, hand it over)
  • time_t activation β€” the activation time ⏰ like, when the clock starts
  • time_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 Β© 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