gnutls_pkcs11_...y_export_pubkey(3)
β¨ NAME β¨
gnutls_pkcs11_privkey_export_pubkey β ok bestie, this is an API function π (yes the manual is just called gnutls, we're in the big-league man pages now)
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_privkey_export_pubkey(gnutls_pkcs11_privkey_t pkey,
gnutls_x509_crt_fmt_t fmt, gnutls_datum_t * data, unsigned int flags);
π ARGUMENTS π
gnutls_pkcs11_privkey_t pkeyβ the private key, the main character of this whole operation πgnutls_x509_crt_fmt_t fmtβ the format of output params. it's givingPEMorDER, pick ur fighter πgnutls_datum_t * dataβ this one's gonna hold the public key when we're done π«Άunsigned int flagsβ should be zero. that's it. that's the whole vibe. zero. π«
πΈ DESCRIPTION πΈ
So the way this works: this function will extract the public key β literally the modulus and public exponent, the whole combo β¨ β from the private key specified by the url private key.
That public key gets stored in pubkey in the format specified by fmt. And listen, bestie, pubkey should be deinitialized using gnutls_free(). don't forget. do not leave it hanging, that's not the energy we're bringing to this π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, zero is the slay outcome, negatives are the π outcome, iykyk
π§ SINCE π§
3.3.7 β been iconic since way back, no cap π
π REPORTING BUGS π
Found something cursed? 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. fr fr, just keep the notice and you're golden π
π₯ 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/
okay that's the whole page, you're officially smarter than you were 3 minutes ago, obsessed with u π«Ά
gnutls 3.8.13 β mwah, that's the version and that's the sign-off, catch u in the next man page 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