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 ofGNUTLS_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:
- 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. 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
- 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