2022-11-28 09:27 AM
Hi,
I am new to STM32 and the Signing Tool and I'm trying to sign using a key from an HSM (nitrokey) but i get the following error:"Error loading pkcs#11 module functions".
I run the following on Ubuntu 20.04:
STM32MP_SigningTool_CLI --binary-image [path to stm32 file] --algorithm 2 --module /usr/lib/x86_64-linux-gnu/engines-1.1/libpkcs11.so --key-index 0x0 --slot-index 0x0 --password 123456 --output ./signed.stm32
Any help appreciated!
Thanks
Doug
Solved! Go to Solution.
2022-11-29 06:36 AM
The above error was fixed by pointing to the opensc-pkcs11.so rather than libpkcs11.
2022-11-29 06:36 AM
The above error was fixed by pointing to the opensc-pkcs11.so rather than libpkcs11.