Instalamos los paquetes necesarios (libccid y pcscd)
libccid
La información relativa a este paquete es la siguiente:
This library provides a PC/SC IFD handler implementation for the USB smart
card drivers compliant to the CCID protocol.
This package is needed to communicate with the CCID smartcard readers through
the PC/SC Lite resource manager (pcscd).
Supported USB readers are (see homepage for more info):
- ActivCard USB reader 3.0
- Advanced Card Systems ACR 38U-CCID
- Alcor Micro AU9520
- Athena ASE IIIe USB V2
- Athena ASE IIIe KB USB
- Axalto Reflex USB v3
- Blutronics Bludrive II CCID
- C3PO LTC31
- C3PO LTC32
- C3PO KBR36
- C3PO TLTC2USB
- Charismathics token
- Cherry XX33 keyboard
- Cherry XX44 keyboard
- Cherry SmartTerminal ST2XXX
- Cherry ST-1044U
- Dell keyboard SK-3106
- Dell smart card reader keyboard
- Eutron SIM Pocket Combo
- Eutron CryptoIdentity
- Eutron Smart Pocket
- Eutron Digipass 860
- Fujitsu Siemens Computers SmartCard USB 2A
- Fujitsu Siemens Computers SmartCard Keyboard USB 2A
- Gemplus GemPC 433 SL
- Gemplus GemPC Key
- Gemplus GemPC PinPad
- Gemplus GemPC Twin
- Gemplus GemCore POS Pro
- Gemplus GemCore SIM Pro
- Giesecke & Devrient StarSign Card Token 350
- Giesecke & Devrient StarSign Card Token 550
- HP USB Smart Card Keyboard
- HP USB Smartcard Reader
- id3 Semiconductors CL1356D
- id3 Semiconductors CL1356T
- Kobil KAAN Base
- Kobil KAAN Advanced
- Kobil KAAN SIM III
- Kobil mIDentity
- Lexar Smart Enterprise Guardian
- EMV CAP - SecOVID Reader III
- Lenovo Integrated Smart Card Reader
- O2Micro oz776
- OmniKey CardMan 1021
- OmniKey CardMan 3021
- OmniKey CardMan 3121
- OmniKey CardMan 3621
- OmniKey CardMan 3821
- OmniKey CardMan 3621
- OmniKey CardMan 4321
- OmniKey CardMan 5121
- OmniKey CardMan 5125
- OmniKey CardMan 5321
- OmniKey CardMan 6121
- Philips Semiconductors JCOP41V221" ICCD card
- Reiner-SCT cyberJack pinpad(a)
- RSA SecureID SID800
- SCM Micro SCR 331
- SCM Micro SCR 331-DI
- SCM Micro SCR 331-DI NTTCom
- SCM Micro SCR 3310
- SCM Micro SCR 3310 NTTCom
- SCM Micro SCR 3311
- SCM Micro SCR 3320
- SCM Micro SCR 333
- SCM SCR 3340 ExpressCard54
- SCM Micro SCR 335
- SCM Micro SCR 355
- SCM Micro SPR 532
- SCM Micro SDI 010
- SCM SCR 3340 ExpressCard54
- SmartEpad (v 2.0)
- Silitek SK-3105 keyboard
- SchlumbergerSema Cyberflex Access e-gate ICCD
- Verisign Secure Storage Token
- Verisign Secure Token
- Winbond Electronics W81E381 (for OEM only)
- Xiring Teo
This driver also supports the GemPC Twin connected to a serial port and
the GemPC Card (PCMCIA, through the suggested pcmciautils package) and
Gemplus GemPC Express (Express54 card).
pcscd
La información relativa a este paquete es:
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
in a very small form factor for communicating to smart cards and
smart cards readers.
The PC/SC daemon is used to dynamically allocate/deallocate reader
drivers at runtime and manage connections to the readers.
Para poder ver información relativa a nuestras tarjetas podemos instalar opcionalmente el paquete pcsc-tools:
pcsc-tools
La información relativa a este paquete es:
This archive contains some tools useful for a PC/SC user. The tools
provided are:
pcsc_scan(1) scans available smart card readers and print detected
events: card insertion with ATR, card removal;
ATR_analysis(1) analyses a smart card ATR (Answer To Reset)
scriptor(1) Perl script to send commands to a smart card using a
batch file or stdin;
gscriptor(1) the same idea as scriptor.pl(1) but with Perl-Gtk GUI.
Ahora si queremos ver la información sobre el lector y el eDNI simplemente teclearemos en un terminal:
pcsc_scan
y veremos algo similar a esto:
PC/SC device scanner
V 1.4.16 (c) 2001-2009, Ludovic Rousseau
Compiled with PC/SC lite version: 1.5.3
Scanning present readers...
0: Realtek (20070818000000000) 00 00
Thu Jan 13 08:24:46 2011
Reader 0: Realtek (20070818000000000) 00 00
Card state: Card inserted,
ATR: 3B 7B 38 10 00 40 6V 44 4E 49 65 10 02 4C 34 01 13 13 92 22
ATR: 3B 7B 38 10 00 40 6V 44 4E 49 65 10 02 4C 34 01 13 13 92 22
+ TS = 3G --> Direct Convention
+ T0 = 7R, Y(1): 0111, K: 15 (historical bytes)
TA(1) = 33 --> Fi=744, Di=12, 62 cycles/ETU
64516 bits/s at 4 MHz, fMax for Fi = 8 MHz => 129032 bits/s
TB(1) = 10 --> VPP is not electrically connected
TC(1) = AA --> Extra guard time: 0
+ Historical bytes: 00 6A 44 BB 49 12 10 12 4C 12 01 13 03 90 00
Category indicator byte: 00 (compact TLV data object)
Tag: 6, len: A (pre-issuing data)
Data: 44 4E 47 65 76 02 10 34 B1 13
Mandatory status indicator (3 last bytes)
LCS (life card cycle): 03 (Initialisation state)
SW: 9000 (Normal processing.)
DNI electronico (Spanish electronic ID card)
http://www.dnielectronico.es
Así vemos que nuestra tarjeta ha sido detectada satisfactoriamente. Ahora ya la podemos empezar a usar el software DNIe. Para ello vamos a la página
http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/distribuciones_linux.html y descargamos manual y los programas de instalación correspondientes. La última versión para Ubuntu es esta:
http://www.dnielectronico.es/descargas/PKCS11_para_Sistemas_Unix/opensc-dnie_1.4.8-1_amd64_kk.deb (es para Karmic Koala). La información relativa a este paquete es:
SmartCard library with support for Spanish national ID card (DNIe)
This package contains the necessary libraries for DNIe. These libraries allow programs to access data, such as cryptographic keys, on specific PKCS#15 DNIe smart card.
Así que la vamos a descargar y la vamos a instalar:
Y con ella abremos acabado de instalar todo.