pskc_sign_x509(3)
π pskc_sign_x509
okay so bestie, welcome to pskc_sign_x509 β part of the libpskc family (that's the manual name, not me being extra). this is the one that puts a signature on your PSKC data using an X.509 certificate, and honestly? iconic behaviour. let's get into it π
β¨ SYNOPSIS β¨
#include <pskc.h>
int pskc_sign_x509(pskc_t * container, const char * key_file, const char * cert_file);
like, that's the whole vibe. three args, one int back. slay.
πΈ ARGUMENTS πΈ
pskc_t * containerβ apskc_thandle, which you get frompskc_init(). this is your main character, the actual container object you're signing π«Άconst char * key_fileβ filename of the file containing the private key. yes, the private one. guard it with your life, bestie πconst char * cert_fileβ filename of the file containing the corresponding X.509 certificate. this is the public-facing bestie that matches the key β¨
π DESCRIPTION π
Sign PSKC data using X.509 certificate and private key.
that's it, that's the whole thing. it takes your container, pairs it up with the private key from key_file and the X.509 cert from cert_file, and signs the PSKC data. it's giving cryptographic commitment. no cap π₯
β RETURNS β
On success, PSKC_OK (zero) is returned, or an error code.
so like β zero means you ate and left no crumbs π. anything that isn't zero is an error code telling you something went sideways. do a vibe check on it, don't just ignore it π
π¦ REPORTING BUGS π¦
found a bug? don't suffer in silence, bestie. Report bugs to <oath-toolkit-help@nongnu.org>.
- libpskc home page: https://oath-toolkit.codeberg.page/
- General help using GNU software: http://www.gnu.org/gethelp/
literally just tell them. they want to know π«Ά
π COPYRIGHT π
Copyright Β© 2009-2026 Simon Josefsson.
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.
(read that again β royalty-free distribution, just keep the notice. generous icon behaviour honestly π)
and that's the page! brought to you by libpskc, version 2.6.15 β and since the page itself doesn't stamp a date on it, just know this is the 2.6.15 era libpskc energy π« go forth and sign your containers, bestie π β¨
π¦ where this page comes from
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms