Open xfors opened 1 month ago
To clarify. Running the gpg --edit-card command to set login attribute before running --edit-key and keytocard makes everything work. Without setting login attribute it will fail with Bad Pin and trying to set name attribute instead of login attribute will not work since that also gives Bad Pin
I can also get transfering the subkey to work without first setting login attribute, if I accept that the first try will fail and just re-run the command once again.
I understand that this is magic that you are not responsible for, but thought it would be nice to mention.
@xfors thank you for looking into this. Could you send a PR to update that section for effect?
In the guide there is a step to Set attributes before transfering subkeys.
It is not mentioned why one would want to do this but I have discovered that if you don't do it the first transfer of a subkey will fail with Bad PIN
The output from gpg looks like
If I use the instructions for setting the values for login then this doesn't happen. Even stranger is the fact that if I try to set the attribute for name instead, then that command fails with Bad PIN
I'm using