core_sign_update: Work with a mapped pcscd socket

The sdk user in the container might rejected by the pcscd on the host.
Work around that by running the openssl command as root.
This commit is contained in:
Kai Lueke 2024-02-13 15:43:43 +01:00
parent c48d4d2cad
commit dd8c063770

View File

@ -136,7 +136,7 @@ i=1
signature_sizes="" signature_sizes=""
for key in "${private_keys[@]}"; do for key in "${private_keys[@]}"; do
if [[ "${key}" == pkcs11* ]]; then if [[ "${key}" == pkcs11* ]]; then
OPENSSL_CONF=/etc/ssl/pkcs11.cnf openssl pkeyutl -engine pkcs11 -sign -keyform engine -inkey "${key}" -in update.pkcs11-padhash -out "update.sig.${i}" sudo OPENSSL_CONF=/etc/ssl/pkcs11.cnf openssl pkeyutl -engine pkcs11 -sign -keyform engine -inkey "${key}" -in update.pkcs11-padhash -out "update.sig.${i}"
elif [[ "${key}" == fero* ]]; then elif [[ "${key}" == fero* ]]; then
fero-client \ fero-client \
--address $FLAGS_signing_server_address \ --address $FLAGS_signing_server_address \