Smart cards
[root@cube ~]# opensc-tool --verbose --info opensc 0.12.2 [gcc 4.1.2 20080704 (Red Hat 4.1.2-51)] Enabled features: zlib readline openssl pcsc(libpcsclite.so.1) [root@cube ~]# opensc-tool -l # Detected readers (pcsc) Nr. Card Features Name 0 Yes OmniKey CardMan 3121 00 00 [root@cube ~]# opensc-tool --atr Using reader with a card: OmniKey CardMan 3121 00 00 3b:9f:95:81:31:fe:9f:00:65:46:53:05:30:06:71:df:00:00:00:80:6a:82:5e [root@cube ~]# [root@cube ~]# opensc-tool --serial Using reader with a card: OmniKey CardMan 3121 00 00 30 64 49 45 09 26 05 11 0dIE.&.. [root@cube ~]# [root@cube ~]# pkcs15-init --create-pkcs15 --profile pkcs15+onepin --use-default-transport-key --pin 0000 --puk 111111 --label "Andrew Stringer" Using reader with a card: OmniKey CardMan 3121 00 00 [root@cube ~]# [root@cube ~]# pkcs15-tool --dump Using reader with a card: OmniKey CardMan 3121 00 00 PKCS#15 Card [Andrew Stringer]: Version : 0 Serial number : 3064494509260511 Manufacturer ID: EnterSafe Last update : 20121204011429Z Flags : EID compliant PIN [User PIN] Object Flags : [0x3], private, modifiable ID : 01 Flags : [0x32], local, initialized, needs-padding Length : min_len:4, max_len:16, stored_len:16 Pad char : 0x00 Reference : 1 Type : ascii-numeric Path : 3f005015 [root@cube ~]# [root@cube ~]# pkcs15-tool --list-pins
Using reader with a card: OmniKey CardMan 3121 00 00 PIN [User PIN]
Object Flags : [0x3], private, modifiable ID : 01 Flags : [0x32], local, initialized, needs-padding Length : min_len:4, max_len:16, stored_len:16 Pad char : 0x00 Reference : 1 Type : ascii-numeric Path : 3f005015
[root@cube ~]#
http://www.gooze.eu/howto/smartcard-quickstarter-guide/managing-pin-codes