OpenPGP card issues

David Robertson djpeterrobertson at gmail.com
Fri Sep 9 21:00:32 CEST 2011


> To start the agent you need to add the --daemon argument.  For
> testing you may use this:
> 
> gpg-agent --use-standard --daemon sh
> 
> which opens a new shell and sets up everything.  You need to make
> sure that no other agent is running and controlling the card.
> 
> You should also unset the GPG_AGENT_INFO ebvar which might have
> been set by another script.

I tried this:

david at david-desktop-debian:~$ unset GPG_AGENT_INFO
david at david-desktop-debian:~$ gpg-agent --use-standard --daemon sh
gpg-agent[7657]: a gpg-agent is already running - not starting a new one
david at david-desktop-debian:~$ pkill gpg-agent
david at david-desktop-debian:~$ gpg-agent --use-standard --daemon sh
$ gpg2 --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
$






-- 
Thanks,
David Robertson.

david at davidr.me  |  djpeterrobertson at gmail.com



More information about the Gnupg-users mailing list