gnutls_pkcs11_copy_x509_crt(3)

πŸ’– gnutls_pkcs11_copy_x509_crt(3) πŸ’–

okay bestie, welcome to the gnutls manual, page gnutls_pkcs11_copy_x509_crt(3). sit down, grab a lil snack πŸ“, because we're about to yeet a certificate into a PKCS 11 token and honestly? it's giving iconic.


✨ NAME ✨

gnutls_pkcs11_copy_x509_crt β€” the API function that copies your cert into a token, no cap πŸŽ€


🌸 SYNOPSIS 🌸

#include <gnutls/pkcs11.h>

int gnutls_pkcs11_copy_x509_crt(const char * token_url,
gnutls_x509_crt_t crt, const char * label, unsigned int flags);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • const char * token_url β€” a PKCS 11 URL that points at a token. like, which token are we talking to, bestie πŸ’…
  • gnutls_x509_crt_t crt β€” a certificate. the actual star of the show, main character energy πŸ‘‘
  • const char * label β€” a name to be used for the stored data. that's the lil nametag your cert gets when it moves in 🏷️
  • unsigned int flags β€” one of GNUTLS_PKCS11_OBJ_FLAG_*. pick your fighter ⭐

πŸ’œ DESCRIPTION πŸ’œ

so basically, this function will copy a certificate into a PKCS 11 token specified by a URL. and the certificate can be marked as trusted or not β€” that part's up to you, bestie, it's literally your call πŸ™ˆ


🌈 RETURNS 🌈

on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the universe's way of saying "not today" 😭


✨ SINCE ✨

2.12.0 β€” been here since forever, a true elder icon 🫢


πŸŽ€ REPORTING BUGS πŸŽ€

found a bug? don't be shy, tell the devs:


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, and legally so πŸ’…


🧚 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, that's the whole page. go forth and copy those certs responsibly πŸ”₯

mwah πŸ’‹ that was gnutls 3.8.13 pulling up with the gnutls_pkcs11_copy_x509_crt(3) energy β€” periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from