gnutls_privkey_export_x509(3)
β¨ gnutls_privkey_export_x509(3) β the glow-up page β¨
okay bestie, welcome to the gnutls manual, page gnutls_privkey_export_x509(3). this is literally the API function that takes your abstract private key and hands you the classic x509 version. let's get into it π
πΈ NAME πΈ
gnutls_privkey_export_x509 β API function. that's it, that's the name, she's iconic π
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_privkey_export_x509(gnutls_privkey_t pkey,
gnutls_x509_privkey_t * key);
π¦ ARGUMENTS π¦
gnutls_privkey_t pkeyβ the private key, the main character of this whole operation πgnutls_x509_privkey_t * keyβ where the exported key is gonna live. this is the location for the key to be exported π«Ά
π DESCRIPTION π
so what's the vibe? this function converts the given abstract private key into a gnutls_x509_privkey_t type. glow-up complete β¨
but listen, there are rules, and we respect them:
- the abstract key must be of type
GNUTLS_PRIVKEY_X509. no exceptions, she's picky π - the input
keymust not be initialized. like, don't come in here with a pre-initialized key, that's not the move π - the key that gets returned in
keyshould be deinitialized usinggnutls_x509_privkey_deinit(). yes, you have to clean up after yourself, that's the grown-up part π§
β RETURNS β
on success, GNUTLS_E_SUCCESS (which is 0) is returned. otherwise you get a negative error value. not me getting a negative number back and knowing something went wrong π
π SINCE π
3.4.0 β she's been serving since then, no cap.
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it:
- 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.
π₯ 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, go visit:
https://www.gnutls.org/manual/
fr fr, that's the whole page. go forth and export those keys responsibly π
mwah β this was gnutls_privkey_export_x509(3) from the gnutls manual, version 3.8.13. ty for reading, ily, bye bestie π«Άβ¨π
π¦ 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