latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
11 stars 4 forks source link

Ensure default values are always stored #87

Closed simo5 closed 2 months ago

simo5 commented 2 months ago

Some of the common key attributes were not stored unless explicitly specified in the template. We should always store the default values because applications are allowed to query those attributes at any time and we need to be able to return them when they do.

Found by using pkcs11-tool --list-objects which would spit a lot of errors about unavailable attributes.