I am trying to set up a network with 3 orderers 2 peers and one CA with HSM support(softHSM). I have successfully set up CA with softHSM and can register and enroll with this.
I am trying to understand if how can I set up an orderer/peer to communicate with CA to get a private key and put that in soft-HSM? For example, if I run the fabric-client enroll command it stores the private key on the disk which kind of defeats the purpose of soft-HSM. Can someone please help clarify my understanding here and provide some guidance?