P11SAK_DEFINED_ATTRS.CONF(5)
π P11SAK_DEFINED_ATTRS.CONF β the vibe β¨
okay bestie, listen up π«Ά this is the manual for p11sak_defined_attrs.conf, from the openCryptoki family, and it's literally just a lil config file that tells the p11sak tool which custom attributes to show you. it's a section 5 page, so it's a file-format girlie, not a command girlie. π
πΈ NAME πΈ
p11sak_defined_attrs.conf β the configuration file for the p11sak list-key command. that's it, that's the whole job. π
π¦ DESCRIPTION π¦
so the p11sak tool goes looking for config files to find out about your custom attributes β the ones that should get printed out when you run the p11sak list-key command. it checks these two spots:
~/.p11sak_defined_attrs.conf/etc/opencryptoki/p11sak_defined_attrs.conf
and you can override the whole path if you want, no gatekeeping β just set the environment variable P11SAK_DEFAULT_CONF_FILE and the tool will use that instead. β¨
if that env var is not set, here's the lil search order, in order, bestie:
- it first tries to read
.p11sak_defined_attrs.conffrom the current user's home directory. π - if that's not available, it reads the global config file
/etc/opencryptoki/p11sak_defined_attrs.conf. π
and if none of these files are available? π you get a warning message, and printing of custom attributes is just... not available. it's giving locked out of the group chat. π
π SYNTAX π
each attribute description is built from the attribute title, some brackets, and three key-value pairs. that's the whole recipe, no cap. π§
example time:
attribute
{
name = CKA_IBM_RESTRICTABLE
id = 0x80010001
type = CK_BBOOL
}
bestie, all three keywords βname,id, andtypeβ are required to define an attribute. no skipping, no shortcuts, fr fr. π
here's the rules for each one:
- the
namemust start with a letter, followed by an arbitrary number of letters, numbers, underscores, dots, minuses, or slashes. periodt. π - the
idcan be in decimal or in hexadecimal format β hex just has to start with0x. π - the
typeβ and the only valid values for it are these four, and nothing else:CK_BBOOLCK_ULONGCK_BYTECK_DATE
β Notes β
the pound sign ('#') is what you use to indicate a comment β and it runs up to and including the end of the line. so go ahead and annotate your config, it's self-care. ππ
π SEE ALSO π
p11sak(1) β go read that one too, iykyk. π«Ά
and that's the whole page, bestie! π this lil slice of documentation is openCryptoki version 3.27.0, dated September 2021, and it ate, honestly. π β¨ mwah, go configure those attributes. ππ¦π
π¦ where this page comes from
- centos-stream 10: opencryptoki 3.27.0-1.el10 Β· CPL-1.0
- centos-stream 9: opencryptoki 3.27.0-1.el9 Β· CPL-1.0
- fedora 44: opencryptoki 3.27.0-1.fc44 Β· CPL-1.0
- opensuse-leap 16.0: openCryptoki 3.27.0-160000.2.1 Β· CPL-1.0
- opensuse-leap 16.0: openCryptoki 3.27.0-160000.2.1 Β· CPL-1.0
- opensuse-leap 16.0: openCryptoki 3.27.0-160000.2.1 Β· CPL-1.0
- opensuse-leap 16.0: openCryptoki 3.27.0-160000.2.1 Β· CPL-1.0
- ubuntu stonking: opencryptoki 3.27.0+dfsg-0ubuntu2 Β· CPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms