opendnssec / SoftHSMv2

SoftHSM version 2
http://www.softhsm.org/
Other
740 stars 335 forks source link

Per-slot configuration #727

Open ueno opened 8 months ago

ueno commented 8 months ago

For testing profile objects support in client applications, it would be useful to have a configuration option, say slots.profiles = CKP_PUBLIC_CERTIFICATES_TOKEN in softhsm2.conf. The current configuration file format, however, doesn't allow per-token settings and such option would apply to all tokens provided by the module.

What would you say to adding a means to specify options to a particular token, something like .gitconfig format?

log.level = INFO

[slot "label1"]
slots.profiles = CKP_PUBLIC_CERTIFICATES_TOKEN
slots.removable = true

[slot "label2"]
slots.profiles = CKP_AUTHENTICATION_TOKEN