For a target LS1043AE I can sign ATF and U-Boot using NXP CST tool to have a secure boot chain of trust.
This tool, CST, rely on srk.pri and srk.pub local files at root of ATF source tree to sign binaries.
I want to use my company HSM accessed by PKCS#11 to avoid to expose these files (and have them generated inside it).
Is this possible ?
I can build a special version of OpenSSL with engine implementing PKCS#11 and using CST flags OPENSSL_INC_PATH and OPENSSL_LIB_PATH , but how to tell CST to use PKCS#11 instead of local files srk.pri ?
edit: typo