So from what I understand, since I created my admin user using the fabric-ca-client plugged to the HSM. If I configure the peer CLI command so that it uses the same PKCS11 configuration, it should be able to retrieve the private key in it in order to do the actions. Argh that means I need a docker image of the CLI with the HSM libs...
Ok I'll test that
Do you know if a similar thing is possible with the SDK? Because as far as I know, the SDK needs the admin user private key on the file system?