CST: Error loading pkcs11 engine: could not load the shared library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CST: Error loading pkcs11 engine: could not load the shared library

642件の閲覧回数
mighty_1
Contributor I

Hello,

I get the following error when I try to run the CST to connect to AWS CloudHSM.

./linux64/bin/cst -i u-boot.csf -o out/signed.bin -b pkcs11 --verbose
Install SRK
Authenticate data

[ERROR] CST: Error loading pkcs11 engine: could not load the shared library

In the code directory I notice there is a front_end and back_end-ssl. However, there is no back_end-pkcs11. Is the back_end-pkcs11 missing from 3.4.0? Or am I missing a configuration somewhere?

Also, the documentation for 3.4.0 mentions an example.csf file. However, there is no such example file.

The following is my csf file:

[Header]
Target = AHAB
Version = 1.0
Mode = HSM

[Install SRK]
# SRK table generated by srktool
File = "./crts/SRK1234table.bin"
# Public key certificate in PEM format
Source = "./crts/SRK1_sha384_secp384r1_v3_ca_crt.pem"
# Index of the public key certificate within the SRK table (0 .. 3)
Source index = 0
# Type of SRK set (NXP or OEM)
Source set = OEM
# bitmask of the revoked SRKs
Revocations = 0x0

[Authenticate Data]
# Binary to be signed generated by mkimage
File = "flash.bin"
# Offsets = Container header Signature block (printed out by mkimage)
Offsets = 0x0 0x90

Please advise how to fix this issue. Also, how does CST know where to find the pkcs11.so file?

 

タグ(3)
0 件の賞賛
返信
2 返答(返信)

612件の閲覧回数
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @mighty_1 ,

I hope you're doing well!

I'll be supporting this case directly through email in the other ticket you submitted earlier. Thank you.

Best regards,
Hector.

0 件の賞賛
返信

184件の閲覧回数
Umair-max
Contributor I
Hi,

I'm also facing the same issue with CST 3.4.1; How can I update shared library path for CST instead of /opt/cst

I have tried by exporting; LD_LIBRARY_PATH, MODULE_PATH, OPENSSL_MODULE_PATH, PKCS11_MODULE_PATH but none of them worked

how does CST know where to find the pkcs11.so file?

Thanks
0 件の賞賛
返信