GNUTLS_X509_CRT_SET_PRIVATE_KEY_USAGE_PERIOD(3)

✨ NAME ✨

gnutls_x509_crt_set_private_key_usage_period β€” bestie, this is an API function πŸ’… and it lives in the gnutls manual (section 3, the library-functions girlies πŸŽ€).


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole vibe, verbatim:

#include <gnutls/x509.h>

int gnutls_x509_crt_set_private_key_usage_period(gnutls_x509_crt_t crt,
time_t activation, time_t expiration);

🌸 ARGUMENTS 🌸

  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t. that's the one we're decorating, bestie ✨
  • time_t activation β€” the activation time ⏰
  • time_t expiration β€” the expiration time βŒ›

πŸ’– DESCRIPTION πŸ’–

so this function will set the private key usage period extension, and the OID is literally 2.5.29.16. that's it, that's the whole job. iconic 🫢


πŸ”₯ RETURNS πŸ”₯

if it ate, you get GNUTLS_E_SUCCESS (0) back. if it did not eat, you get a negative error value 😭 no in-between, no cap.


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me gatekeeping β€” report bugs to <bugs@gnutls.org>. πŸ’Œ

home page is right here: 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. slay, that's the license, respect it periodt πŸ’…


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual πŸ“š and fr fr, if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:

https://www.gnutls.org/manual/


anyway bestie, that's the page πŸ’– this was the gnutls manual, version 3.8.13 β€” go forth and set those private key usage periods, main character energy only 🌟

πŸ“¦ where this page comes from