gnutls_x509_cr...t_alt_othername(3)
π gnutls_x509_crt_set_subject_alt_othername π
okay bestie, so this one lives in the gnutls manual, and the whole page is basically gnutls_x509_cr...t_alt_othername(3) β yeah the title got truncated, the full name is the icon it is, we move. π
β¨ NAME β¨
gnutls_x509_crt_set_subject_alt_othername β API function π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crt_set_subject_alt_othername(gnutls_x509_crt_t crt,
const char * oid, const void * data, unsigned int data_size, unsigned
int flags);
β¨ ARGUMENTS β¨
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_tπ¦ like, the actual cert you're messing with.const char * oidβ The other name OID π that's the identifier for whatever kind of othername you're adding.const void * dataβ The data to be set πΈ the actual payload, right there.unsigned int data_sizeβ The size of data to be set πunsigned int flagsβGNUTLS_FSAN_SETto clear previous data, orGNUTLS_FSAN_APPENDto append. π«Ά (so: wipe and replace, or stack it on top β pick your fighter)
β¨ DESCRIPTION β¨
This function will set an "othername" to the subject alternative name certificate extension. slay β¨
The values set are set as binary values and are expected to have the proper DER encoding. π yes bestie, DER, no it does not do the encoding for you by default, you gotta bring it yourself.
BUT. For convenience π the flags GNUTLS_FSAN_ENCODE_OCTET_STRING and GNUTLS_FSAN_ENCODE_UTF8_STRING can be used to encode the provided data. so if you don't feel like hand-rolling your DER, those two flags have your back, fr fr. π
β¨ RETURNS β¨
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. π zero means we ate, negative means we did not.
β¨ SINCE β¨
3.5.0 π°οΈ she's been here a minute, periodt.
β¨ REPORTING BUGS β¨
Found a bug? Tell the people ππ
- 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. π«Ά (yes you can share it, just keep the receipts, that's all they ask)
β¨ 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 if you got this far you're genuinely built different. go set some othernames, bestie, I believe in you π
and that's the whole page!! this one's from the gnutls manual, version 3.8.13 π mwah, go forth and certificate, ily bye β¨ππ¦
π¦ 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