2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Fix clean.sh removal omissions

- Ensure keyfromlabel token is cleaned up
This commit is contained in:
Nicki Křížek
2024-11-12 09:25:34 +01:00
parent b66fb31dcb
commit 7dde34afac

View File

@@ -16,6 +16,7 @@
set -e
OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-keyfromlabel" >/dev/null 2>&1 || true
OPENSSL_CONF= softhsm2-util --init-token --free --pin 1234 --so-pin 1234 --label "softhsm2-keyfromlabel" | awk '/^The token has been initialized and is reassigned to slot/ { print $NF }'
printf '%s' "${HSMPIN:-1234}" >pin