Non-interactive PIN not accepted, gpg hangs

NIIBE Yutaka gniibe at fsij.org
Wed Sep 30 01:39:26 CEST 2015


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.
-- 



More information about the Gnupg-users mailing list