p11-glue / p11-kit

Provides a way to load and enumerate PKCS#11 modules.
https://p11-glue.github.io/p11-glue/p11-kit.html
Other
151 stars 95 forks source link

Add option to specify CKA_ID in generate-keypair and import-object #615

Closed ZoltanFridrich closed 10 months ago

ZoltanFridrich commented 10 months ago

--id option allows users to specify CKA_ID attribute to be associated with imported/generated objects when using p11-kit command. The ID attribute should be specified in hexadecimal format without the "0x" prefix.

Example usage: p11-kit import-object --file=cert.pem --id="54:62:70:63:f1:75:84:43:58:8e:d1:16:20:b1:c6:ac:1a:bc:f6:89" --label=cert --login "pkcs11:token=test"

Closes #607

coveralls commented 10 months ago

Coverage Status

coverage: 69.457% (+0.008%) from 69.449% when pulling ae480ffe20c547c4a1712a6fd960b743d1dfd69d on ZoltanFridrich:zfridric_devel into 3fb878a020ea2a178e03165699a5a592fa99dd50 on p11-glue:master.