Hello all,
In the recent days my Nitrokey Start “forgot” my keys 3 times. I usually use the key to sign commits on GitHub. Today I was able to sign my very first one, then I removed the key from the PC, had some other work and when I tried to sign the next git reported the below:
error: gpg failed to sign the data
fatal: failed to write commit object
The ‘gpg --card-status’ showed the following:
Signature PIN ....: forced
Key attributes ...: rsa2048 rsa2048 rsa2048
Max. PIN lengths .: 0 0 0
PIN retry counter : 0 0 0
Signature counter : 0
KDF setting ......: off
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]
The key I wanted to use was generated last night after I faced the exact same problem. I thought I entered the wrong PIN a lot of times (however the signing happened before that, so it wasn’t too logical). So now I tried to unblock using the ‘unblock’ command and I got the below:
gpg/card> unblock
gpg: OpenPGP card no. D2***************00 detected
gpg: Reset Code not or not anymore available
If I try to reset the PIN in admin/passwd, I get the below message:
Error changing the PIN: Operation not supported by device
Because I moved the keys from the PC I can’t export them again.