I am trying to change the label of a key, according to OpenSC doc, in vain:
$ pkcs15-init --change-attributes privkey --id b1b9db0f95e18c560a73a6714b4ddb17a7b1e4bf --label whatever -v Using reader with a card: Nitrokey Nitrokey HSM (010000000000000000000000) 00 00 Connecting to card in reader Nitrokey Nitrokey HSM (010000000000000000000000) 00 00... Using card driver SmartCard-HSM. Found nitrokey-hsm About to change attribute(s). Failed to change attribute(s): Invalid arguments
It is not even asking for the user PIN. I also tried with --pin arg, same error.
The key ID arg is OK, because: if I enter a wrong one, I have a different error (Requested object not found).
What am I missing?