mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
Merge pull request #1535 from Nitrokey/nk-storage-wa
oem-factory-reset: kill scdaemon after aes regenerate on nk storage
This commit is contained in:
commit
f2f0831a93
@ -497,6 +497,7 @@ gpg_key_factory_reset() {
|
||||
# If Nitrokey Storage is inserted, reset AES keys as well
|
||||
if lsusb | grep -q "20a0:4109" && [ -x /bin/hotp_verification ]; then
|
||||
/bin/hotp_verification regenerate ${ADMIN_PIN_DEF}
|
||||
killall -9 scdaemon
|
||||
fi
|
||||
# Toggle forced sig (good security practice, forcing PIN request for each signature request)
|
||||
if gpg --card-status | grep "Signature PIN" | grep -q "not forced"; then
|
||||
|
Loading…
Reference in New Issue
Block a user