Enable a system PKCS #11 token behind a flag.
If chapsd is started with the --auto_load_system_token switch and
/var/lib/chaps exists, it will load a token from that directory during
initialization.
Also added support for importing PKCS #8 formatted private keys as well
as a --slot option in p11_replay, which help to test this feature.
BUG=chromium:210525
TEST=unit, manual
Change-Id: I29d2ee90fa98de6b549cc007ace46d57d345bed9
Reviewed-on: https://chromium-review.googlesource.com/184784
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Tested-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Darren Krahn <dkrahn@chromium.org>
6 files changed