On 09/30/2015 04:00 AM, Laurent Blume wrote: > Non-interactively, however, I can't get it to work: gpg-agent always > spawns a pinentry in the background, and gpg waits for it indefinitely, > instead of using the PIN provided on the command line.
As far as I know, you can't provide a PIN by command line. You can provide passphrase from file for symmetric encryption, though. Instead, you can unlock your smartcard beforehand, interactively. $ gpg-connect-agent "SCD CHECKPIN D276000124010200F517000000010000" /bye ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please change this to your Application ID. gpg --card-status shows it. BTW, I got a report that RSA-4096 decryption doesn't work well on Nitrokey Pro. If you are using RSA-4096 decryption on Nitrokey Pro successfully, please let us know. -- _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users