latchset / kryoptic

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

Add support for default token #65

Closed simo5 closed 3 months ago

simo5 commented 4 months ago

This depends on (and includes all of the commits of) #62

Adds ability to search for a default token in a specific set of locations.

For example a user can create a personal token by just touch ~/.local/share/kryoptic/token.sql and then use a tool like pkcs11-tool to actually initialize the token.

Fixes #37

simo5 commented 4 months ago

apparently since the switch to serial v parallel test success is not deterministic anymore, it sometimes depends on the order in which tests are run. @Jakuje is there even more control over serial tests? for example ability to set dependencies between tests, or at least an order of execution ?

simo5 commented 4 months ago

I do not get what is causing the test failure. I have fixed an issue that could be caused by things running in different order, and the test now reliably passes for me locally ...

simo5 commented 4 months ago

Somehow one of the other test tokens gets slot number 0 even though our test infrastructure always starts from 1 when setting test file names ...

simo5 commented 3 months ago

thanks!