hyperledger-fabricx509certificatehsm

Is it possible to manage TLS certificates from an HSM in Hyperledger Fabric?


I have an application in Hyperledger Fabric and I want to use the HSM to store my private keys, I don't see any problem using it for the identity key pairs but when it comes to the TLS key pair I have found the following problems:

So, for what I can see its not possible and I need to use like 2 different wallets to store the identity and the TLS certificates, am I missing something? or is it possible to have the TLS private keys also in the HSM?

Thanks!


Solution

  • It's not possible. The reason it's not possible is that the TLS stack in Fabric doesn't interface with BCCSP, which is the component that manages HSM in Fabric.

    However, it is possible with some code changes. All that is needed is to connect the TLS stack to BCCSP and then it will be possible.