latchset / kryoptic

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

Add configuration file support #102

Open simo5 opened 1 week ago

simo5 commented 1 week ago

To aid cases where an environment variable cannot be easily set nor init arguments can be easily passed we need a place where we can store the tokens configuration, including the ability to specify multiple slots.

The ability to use init args and ignore any configuration is retained but the init arguments format has been enhanced to be a set of comma separated key/value pairs so that additional info can be passed there in the future.

On build a CONFDIR prefix can be specified as: CONFDIR=/etc cargo build

Resolves: #100