User Tools

Site Tools


kb:2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:2 [2013/06/28 10:56] rootkb:2 [2013/06/28 11:29] (current) root
Line 1: Line 1:
 ====== Get OpenPGP to work on debian ====== ====== Get OpenPGP to work on debian ======
 +Source: [[https://www.opensc-project.org/opensc/wiki/OpenPGP]]
  
-===== With gemalto =====+===== Disable crappy Gnome keyring agent ===== 
 + 
 +Gnome's stock GPG agent is a piece of crap that doesn't support smartcards. This is an old known problem (2008 AFAIK), but gnome dev team seems not to give a heck to this issue. The most appropriate solution is to disable gnome's GPG agent and, if necessary, to properly configure your own gpg agent. To do so, run the following program: 
 + 
 +<code>gnome-session-properties</code> 
 + 
 +uncheck Gnome keyring Agent, then reboot or log out and log back in. 
 + 
 +Refer to [[http://www.jwiltshire.org.uk/content/2010/12/19/the-perfect-gpg-agent-setup/]] for a nice GPG agent setup 
 + 
 +===== With gemalto usb shell token v2 ===== 
 + 
 +<code>apt-get install pcscd gnupg2 gpgsm scdaemon</code> 
 + 
 +Touch ~/.gnupg/gpg-agent.conf, then put this into ~/.gnupg/scdaemon.conf
  
 <code>reader-port "Gemalto USB Shell Token V2 01 00" <code>reader-port "Gemalto USB Shell Token V2 01 00"
 disable-ccid</code> disable-ccid</code>
 +
 +===== Errors of reader selection with gpg =====
 +gpg selects the first card reader it sees by defaut, if the first reader doesn't have a card, it will fail as follow:
 +
 +<code>13:37 user@hostname ~ % gpg --card-status      
 +gpg: detected reader `Dell Dell Smart Card Reader Keyboard 00 00'
 +gpg: detected reader `Gemalto USB Shell Token V2 01 00'
 +gpg: apdu_send_simple(0) failed: no card</code>
 +
 +Append //--reader-port "reader name"// to gpg command for version.
  
kb/2.1372409810.txt.gz · Last modified: 2013/06/28 10:56 by root

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki