Card only available to root user
Werner Koch
wk at gnupg.org
Fri Aug 5 09:32:35 CEST 2011
On Fri, 5 Aug 2011 01:49, luis at debethencourt.com said:
>
> luisbg at atlas ~ $ gpg --card-status
> gpg: selecting openpgp failed: Unsupported certificate
What kind of reader are you using?
> luisbg at atlas ~ $ gpg-agent --server gpg-connect-agent
Now that is a strange command. The "gpg-connect-agent" argument is
simply ignored. What you do is sto start a new gpg-agent in --server
mode, that is without it listening on a socket but connected to the tty.
You should first start gpg-agent after checking that no other one is
running. For testing I do it this way
$ gpg-agent --daemon sh
This creates a new shell and if you terminate this shell (exit) the
gpg-agent will terminate as well after a few seconds. Then use
$ gpg-connect-agent
SCD SERIALNO
BYE
or
$ gpg-connect-agent 'SCD SERIALNO' /bye
or to get all info from the card
$ gpg-connect-agent 'scd learn --force' /bye
My guess at your problem is that there is another gpg-agent running
which has the scdaemon open. The one you started under root?
To debug this you should put these lines into scdaemon.conf
log-file /foo/bar/scd.log
debug 2049
debug-ccid-driver
verbose
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-users
mailing list