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?


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to