I’m trying to export a wrapped backup of my keys generated within an HSM which is configured to use M-of-N authentication and an M-of-N DKEK domain. The command that I am trying to run is the following:
sc-hsm-tool --wrap-key privKey.bin --key-reference 1 --pin env:USERPIN
The error that I am getting is the following:
PIN verification failed with Data object not found
Full OPENSC debug output is here:
Is there an issue with using sc-hsm-tool to export a wrapped key?