Skip to main content
Doug1
Associate
November 28, 2022
Solved

STM32MP_SigningTool_CLI error with HSM (nitrokey)

  • November 28, 2022
  • 1 reply
  • 1023 views

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

This topic has been closed for replies.
Best answer by Doug1

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

1 reply

Doug1
Doug1AuthorBest answer
Associate
November 29, 2022

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