очень долго форматируется токен

Добрый день.

При использовании токена у  меня обнаружилсь следующая проблема.
Любое обращение к токену ничего не возвращает. Токен начинает мигать красным диодом и все.

например запускаю opensc-explorer, потом набираю ls:
OpenSC [3F00]> ls
[opensc-explorer] card.c:341:sc_list_files: called
[opensc-explorer] card-rutoken.c:272:rutoken_list_files: called
[opensc-explorer] apdu.c:516:sc_transmit_apdu: called
[opensc-explorer] card.c:285:sc_lock: called
[opensc-explorer] apdu.c:184:sc_apdu_log:
Outgoing APDU data [    5 bytes] =====================================
00 A4 00 00 00 .....
======================================================================
Все. После этого все подвисает.

Пытаюсь отформатировать как написано здесь http://www.opensc-project.org/opensc/wiki/AktivRutokenS
Вставляю токен, он определяется. Запускаю форматирование командой
$ pkcs15-init --erase-card
и все. Форматирование не может закончится. В таком виде токен был несколько часов и форматирование не закончилось.


~$ openct-tool list                                                                                                                   
  0 Rutoken S driver
~$ opensc-tool --list-readers                                                                                                         
[opensc-tool] ctx.c:735:sc_context_create: ===================================
[opensc-tool] ctx.c:736:sc_context_create: opensc version: 0.11.13
[opensc-tool] reader-openct.c:79:openct_reader_init: called
Readers known about:
Nr.    Driver     Name
0      openct     Rutoken S driver
1      openct     OpenCT reader (detached)
[opensc-tool] ctx.c:765:sc_release_context: called
[opensc-tool] reader-openct.c:168:openct_reader_release: called
[opensc-tool] reader-openct.c:168:openct_reader_release: called
[opensc-tool] reader-openct.c:154:openct_reader_finish: called

OS OpenBSD 4.9 x64
версии ПО:
~$ pkg_info -Q opensc
opensc-0.11.13p0 (installed)
~$ pkg_info -Q openct
openct-0.6.20 (installed)

Тоже самое происходило на Mac OS Snow Leopard 10.6.8 x64

Re: очень долго форматируется токен

Здравствуйте.

Вы уверены что у Вас именно Рутокен S ?

https://forum.rutoken.ru/topic/1515/

Если точно Рутокен S, то попробуйте в файле /etc/opensc.conf включить параметр debug = 6 и прислать вывод команды
$ pkcs15-init --erase-card

Re: очень долго форматируется токен

да, это именно Rutoken S. вот кусок из dmesg:
ugen2 at uhub5 port 1 "Aktiv Co. Rutoken S" rev 2.00/2.00 addr 2
ugen2 detached
ugen2 at uhub5 port 2 "Aktiv Co. Rutoken S" rev 2.00/2.00 addr 2
ugen2 detached



[pkcs15-init] ctx.c:735:sc_context_create: ===================================
[pkcs15-init] ctx.c:736:sc_context_create: opensc version: 0.11.13
[pkcs15-init] reader-openct.c:79:openct_reader_init: called
[pkcs15-init] sc.c:196:sc_detect_card_presence: called
[pkcs15-init] reader-openct.c:194:openct_reader_detect_card_presence: called
[pkcs15-init] sc.c:201:sc_detect_card_presence: returning with: 1
[pkcs15-init] sc.c:196:sc_detect_card_presence: called
[pkcs15-init] reader-openct.c:194:openct_reader_detect_card_presence: called
[pkcs15-init] sc.c:201:sc_detect_card_presence: returning with: 1
[pkcs15-init] card.c:110:sc_connect_card: called
[pkcs15-init] reader-openct.c:218:openct_reader_connect: called
[pkcs15-init] card.c:140:sc_connect_card: matching configured ATRs
[pkcs15-init] card.c:182:sc_connect_card: matching built-in ATRs
[pkcs15-init] card.c:188:sc_connect_card: trying driver: cardos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: cardos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: flex
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:02:14:50
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:32:15:00:06:80
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:32:15:00:06:95
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: cyberflex
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:02:14:50
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:32:15:00:06:80
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:32:15:00:06:95
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: gpk
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:27:00:80:65:A2:04:01:01:37
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:27:00:80:65:A2:05:01:01:37
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:27:00:80:65:A2:0C:01:01:37
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: gemsafeV1
[pkcs15-init] card-gemsafeV1.c:120:gemsafe_match_card: called
[pkcs15-init] card.c:188:sc_connect_card: trying driver: miocos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:9D:94:40:23:00:68:10:11:4D:69:6F:43:4F:53:00:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:9D:94:40:23:00:68:20:01:4D:69:6F:43:4F:53:00:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: mcrd
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:FF:94:00:FF:80:B1:FE:45:1F:03:00:68:D2:76:00:00:28:FF:05:1E:31:80:00:90:00:23
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:6f:00:ff:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: asepcos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:d6:18:00:81:b1:80:7d:1f:03:80:51:00:61:10:30:8f
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:d6:18:00:81:b1:fe:7d:1f:03:41:53:45:37:35:35:01
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: setcos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:1F:11:00:67:80:42:46:49:53:45:10:52:66:FF:81:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:9F:94:40:1E:00:67:16:43:46:49:53:45:10:52:66:FF:81:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:9f:94:40:1e:00:67:00:43:46:49:53:45:10:52:66:ff:81:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:6b:00:ff:80:62:00:a2:56:46:69:6e:45:49:44
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:64:00:ff:80:62:00:a2
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:7b:00:00:00:80:62:00:51:56:46:69:6e:45:49:44
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:64:00:00:80:62:00:51
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:6e:00:00:00:62:00:00:57:41:56:41:4e:54:10:81:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:9f:94:80:1f:c3:00:68:10:44:05:01:46:49:53:45:31:c8:07:90:00:18
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:9f:94:80:1f:c3:00:68:11:44:05:01:46:49:53:45:31:c8:00:00:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] apdu.c:516:sc_transmit_apdu: called
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] reader-openct.c:410:openct_reader_lock: called
[pkcs15-init] apdu.c:184:sc_apdu_log:
Outgoing APDU data [    5 bytes] =====================================
00 CA DF 30 05 .Êß0.
======================================================================
[pkcs15-init] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 81 j.
======================================================================
[pkcs15-init] card.c:312:sc_unlock: called
[pkcs15-init] reader-openct.c:437:openct_reader_unlock: called
[pkcs15-init] card.c:188:sc_connect_card: trying driver: starcos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:B7:94:00:c0:24:31:fe:65:53:50:4b:32:33:90:00:b4
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:B7:94:00:81:31:fe:65:53:50:4b:32:33:90:00:d1
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: tcos
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:BA:13:00:81:31:86:5D:00:64:05:0A:02:01:31:80:90:00:8B
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:BA:14:00:81:31:86:5D:00:64:05:14:02:02:31:80:90:00:91
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:BA:96:00:81:31:86:5D:00:64:05:60:02:03:31:80:90:00:66
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:BA:96:00:81:31:86:5D:00:64:05:7B:02:03:31:80:90:00:7D
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:BF:96:00:81:31:FE:5D:00:64:04:11:03:01:31:C0:73:F7:01:D0:00:90:00:7D
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: openpgp
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:fa:13:00:ff:81:31:80:45:00:31:c1:73:c0:01:00:00:90:00:b1
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: jcop
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:E6:00:FF:81:31:FE:45:4A:43:4F:50:33:31:06
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: oberthur
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:7D:18:00:00:00:31:80:71:8E:64:77:E3:01:00:82:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:7D:18:00:00:00:31:80:71:8E:64:77:E3:02:00:82:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:7D:11:00:00:00:31:80:71:8E:64:77:E3:01:00:82:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:7D:11:00:00:00:31:80:71:8E:64:77:E3:02:00:82:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:7B:18:00:00:00:31:C0:64:77:E3:03:00:82:90:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: belpic
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:98:13:40:0A:A5:03:01:01:01:AD:13:11
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:98:94:40:0A:A5:03:01:01:01:AD:13:10
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3B:98:94:40:FF:A5:03:01:01:01:AD:13:10
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: atrust-acos
[pkcs15-init] card.c:188:sc_connect_card: trying driver: muscle
[pkcs15-init] apdu.c:516:sc_transmit_apdu: called
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] reader-openct.c:410:openct_reader_lock: called
[pkcs15-init] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   10 bytes] =====================================
00 A4 04 00 05 A0 00 00 00 01 .¤... ....
======================================================================
[pkcs15-init] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 80 j.
======================================================================
[pkcs15-init] card.c:312:sc_unlock: called
[pkcs15-init] reader-openct.c:437:openct_reader_unlock: called
[pkcs15-init] muscle.c:276:msc_select_applet: returning with: -1200
[pkcs15-init] card.c:188:sc_connect_card: trying driver: incrypto34
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:ff:18:00:ff:81:31:fe:55:00:6b:02:09:02:00:01:01:01:43:4e:53:10:31:80:9f
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:ff:18:00:ff:81:31:fe:55:00:6b:02:09:02:00:01:01:01:44:53:44:10:31:80:92
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: piv
[pkcs15-init] card-piv.c:1761:piv_match_card: called
[pkcs15-init] card-piv.c:493:piv_find_aid: called
[pkcs15-init] card-piv.c:458:piv_select_aid: called
[pkcs15-init] card-piv.c:460:piv_select_aid: Got args: aid=bc5b11, aidlen=9, response=fffd9130, responselen=258
[pkcs15-init] apdu.c:516:sc_transmit_apdu: called
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] reader-openct.c:410:openct_reader_lock: called
[pkcs15-init] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   15 bytes] =====================================
00 A4 04 00 09 A0 00 00 03 08 00 00 10 00 00 .¤... .........
======================================================================
[pkcs15-init] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 80 j.
======================================================================
[pkcs15-init] card.c:312:sc_unlock: called
[pkcs15-init] reader-openct.c:437:openct_reader_unlock: called
[pkcs15-init] iso7816.c:99:iso7816_check_sw: Incorrect parameters in the data field
[pkcs15-init] card-piv.c:474:piv_select_aid: returning with: -1205
[pkcs15-init] apdu.c:516:sc_transmit_apdu: called
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] reader-openct.c:410:openct_reader_lock: called
[pkcs15-init] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   15 bytes] =====================================
00 A4 04 00 09 A0 00 00 03 08 00 00 10 00 00 .¤... .........
======================================================================
[pkcs15-init] apdu.c:184:sc_apdu_log:
Incoming APDU data [    2 bytes] =====================================
6A 80 j.
======================================================================
[pkcs15-init] card.c:312:sc_unlock: called
[pkcs15-init] reader-openct.c:437:openct_reader_unlock: called
[pkcs15-init] iso7816.c:99:iso7816_check_sw: Incorrect parameters in the data field
[pkcs15-init] card-piv.c:576:piv_find_aid: returning with: -1208
[pkcs15-init] card.c:188:sc_connect_card: trying driver: acos5
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:be:18:00:00:41:05:10:00:00:00:00:00:00:00:00:00:90:00
[pkcs15-init] card.c:188:sc_connect_card: trying driver: akis
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:ba:11:00:81:31:fe:4d:55:45:4b:41:45:20:56:31:2e:30:ae
[pkcs15-init] card.c:188:sc_connect_card: trying driver: entersafe
[pkcs15-init] card-entersafe.c:101:entersafe_match_card: called
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:0f:00:65:46:53:05:19:05:71:df:00:00:00:00:00:00
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:9f:95:81:31:fe:9f:00:65:46:53:05:30:06:71:df:00:00:00:80:6a:82:5e
[pkcs15-init] card.c:762:match_atr_table: ignored - wrong length
[pkcs15-init] card.c:188:sc_connect_card: trying driver: rutoken
[pkcs15-init] card-rutoken.c:120:rutoken_match_card: called
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card-rutoken.c:123:rutoken_match_card: ATR recognized as Rutoken
[pkcs15-init] card-rutoken.c:124:rutoken_match_card: returning with: 1
[pkcs15-init] card.c:196:sc_connect_card: matched: Rutoken driver
[pkcs15-init] card-rutoken.c:155:rutoken_init: called
[pkcs15-init] card.c:746:match_atr_table: ATR     : 3b:6f:00:ff:00:56:72:75:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card.c:758:match_atr_table: ATR try : 3b:6f:00:ff:00:56:75:61:54:6f:6b:6e:73:30:20:00:00:90:00
[pkcs15-init] card-rutoken.c:133:token_init: called
[pkcs15-init] card-rutoken.c:148:token_init: returning with: 0
[pkcs15-init] card-rutoken.c:161:rutoken_init: returning with: 0
[pkcs15-init] card.c:221:sc_connect_card: card info: Rutoken S card, 0, 0x0
[pkcs15-init] card.c:222:sc_connect_card: returning with: 0
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] reader-openct.c:410:openct_reader_lock: called
[pkcs15-init] card.c:668:sc_card_ctl: called
[pkcs15-init] card-rutoken.c:1502:rutoken_card_ctl: called
[pkcs15-init] card-rutoken.c:1548:rutoken_card_ctl: SC_CARDCTL_LIFECYCLE_SET not supported
[pkcs15-init] card-rutoken.c:1549:rutoken_card_ctl: returning SC_ERROR_NOT_SUPPORTED
[pkcs15-init] card.c:675:sc_card_ctl: card_ctl(4) not supported
[pkcs15-init] card.c:532:sc_select_file: called; type=2, path=3f0050154946
[pkcs15-init] card-rutoken.c:391:rutoken_select_file: called
[pkcs15-init] apdu.c:516:sc_transmit_apdu: called
[pkcs15-init] card.c:285:sc_lock: called
[pkcs15-init] apdu.c:184:sc_apdu_log:
Outgoing APDU data [   10 bytes] =====================================
00 A4 08 00 04 15 50 46 49 00 .¤....PFI.
======================================================================

Re: очень долго форматируется токен

Это очень похоже на то, что нет директории 3F00 -> прошивка висит, если пытаться его выбрать.
Попробуйте из opensc-explorer послать APDU форматирования и создания файла 3F00.

$opensc-explorer
> apdu 80:8A:00:00
> mkdir 3F00 0
> exit

Затем сделать штатное форматирование.  http://www.opensc-project.org/opensc/wiki/AktivRutokenS

Должно заработать.

Re: очень долго форматируется токен

Кирилл Мещеряков пишет:

Должно заработать.

Кирилл, спасибо, помогло.
~$ opensc-explorer                                                                                                                     
OpenSC Explorer version 0.11.13
Using reader with a card: Rutoken S driver
OpenSC [3F00]>
OpenSC [3F00]> apdu 80:8A:00:00
Sending: 80 8A 00 00 02 00 00 00 D8 04 FC

Received (SW1=0x90, SW2=0x00)
OpenSC [3F00]>
OpenSC [3F00]> mkdir 3F00 0
OpenSC [3F00]> exit
~$ openct-tool list
  0 Rutoken S driver