pass PIN environment variable to container

This commit is contained in:
Emil Lerch 2023-03-27 21:29:40 -07:00
parent 72ad4c61b4
commit 1f64163251
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -19,6 +19,7 @@ while IFS= read -r f; do
docker run --rm \
-v /run/pcscd/pcscd.comm:/run/pcscd/pcscd.comm:ro \
-v "${PWD}":/home/user \
-e INPUT_USER_PIN \
git.lerch.org/lobo/pkcs11:1 \
-s --id "${INPUT_SLOT}" -m SHA256-RSA-PKCS -i "$f" -o "${dest_sig}" --pin env:INPUT_USER_PIN
ec=$?