cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP_SigningTool_CLI error with HSM (nitrokey)

Doug1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Doug1
Associate

The above error was fixed by pointing to the opensc-pkcs11.so rather than libpkcs11.

View solution in original post

1 REPLY 1
Doug1
Associate

The above error was fixed by pointing to the opensc-pkcs11.so rather than libpkcs11.