Bypass PIN entry

Harbord Jonathan-EURITEC Jonathan-Harbord at
Fri Nov 27 17:16:52 CET 2015

I am using GPG on windows.

Is there a way to pass the user PIN of a smartcard in a gpg-agent batch file or script?

I am using a nitrokey as a private key store for an unattended SFTP system.
It simply runs a WinSCP script to pickup and send files via SFTP.

Before the script runs I launch I run a batch file to invoke the gpg-agent:
gpg-connect-agent.exe" /bye

WinSCP is then able to use the private key on the smartcard. However, the first time I connect the pinentry program appears and requires me to enter the user PIN.

Is there a way for a script to pass this PIN and unlock the nitrokey when gpg-agent launches?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20151127/11e8ae99/attachment-0001.html>

More information about the Gnupg-users mailing list