gpg and smartcard on ubuntu 16.04

guido guido at dis.tur.bio
Sat Apr 30 15:29:43 CEST 2016


On 28/04/2016, NIIBE Yutaka wrote:
> On 04/28/2016 06:02 AM, Richard Ulrich wrote:
> >I use the stock versions from the ubuntu 16.04 repository:
> >gnupg  1.4.20-1ubuntu3
> >gnupg2 2.1.11-6ubuntu2
> >gnupg-agent 2.1.11-6ubuntu2
> >scdaemon 2.1.11-6ubuntu2
>
> Good, Ubuntu has GnuPG 2.1 (eventually, gpg will be GnuPG 2.1).  Out
> of curiosity, does it has libgcrypt 1.7.0?

Hi,

No, 16.04's libgcrypt20 is 0.6.5 :(
It was the first thing i asked my friend to check

> >Now if I want to decrypt a file:
> >
> >gpg -d Dokumente/somefile.txt.gpg
> >gpg: Anonymer Empfänger; Versuch mit geheimem Schlüssel 0AAAAAAA …
> >gpg: pcsc_list_readers failed: unknown PC/SC error code (0x8010002e)
> >gpg: Kartenleser ist nicht vorhanden
> >
> >gpg --use-agent -d Dokumente/somefile.txt.gpg
> >gpg: Anonymer Empfänger;
> >Versuch mit geheimem Schlüssel 0AAAAAAA …
> >gpg: pcsc_list_readers failed:
> >unknown PC/SC error code (0x8010002e)
> >gpg: Kartenleser ist nicht
> >vorhanden
>
> I think that this is the issue of GPG_AGENT_INFO variable, which was
> used before 2.1.
>
> How about set those environment variables, like?
>
>     export GPG_AGENT_INFO=$HOME/.gnupg/S.gpg-agent:0:1
>     export SSH_AUTH_SOCK=$HOME/S.gpg-agent.ssh
>
> After setting those variables, does gpg work correctly?
>
> In my environment of Debian, those variables are set by:
> /etc/X11/Xsession.d/90gpg-agent
> --
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: </pipermail/attachments/20160430/61b28992/attachment.sig>


More information about the Gnupg-users mailing list