mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
core_sign_update: use pkcs11 openssl engine
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
31b722d0ba
commit
dd10c493bb
@ -136,7 +136,7 @@ i=1
|
||||
signature_sizes=""
|
||||
for key in "${private_keys[@]}"; do
|
||||
if [[ "${key}" == pkcs11* ]]; then
|
||||
openssl rsautl -engine pkcs11 -pkcs -sign -inkey ${key} -keyform engine -in update.pkcs11-padhash -out update.sig.${i}
|
||||
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
|
||||
fero-client \
|
||||
--address $FLAGS_signing_server_address \
|
||||
|
Loading…
Reference in New Issue
Block a user