Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Feitian ePass2003 seems to not work on Linux, again

Abierto
#3,878 7 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c
Área
security

Línea de trabajo

The failure is in the ePass2003 driver during token initialization. The log points to mutual_auth and gen_init_key in src/libopensc/card-epass2003.c, and to epass2003_check_sw, which reports the 'Security status not satisfied' status. Reproducing needs a physical Feitian ePass2003 token, so start by comparing the APDU traces from 0.25.0 and 0.27.0 rc1 around the authentication step. Done means pkcs15-init completes on the device and an EC keypair can be generated.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Describe the bug

I get Failed to create PKCS #15 meta structure: Security status not satisfied when trying to initialize the token using OpenSc version 0.27.0 rc1. I am able to go through initialization on 0.25.0 rc1 but then have issues with EC keys generation.

Steps to reproduce

Initialization problem on 0.27.0 rc1:

  1. Erase:

    $ pkcs15-init -E -T
    Using reader with a card: Feitian ePass2003 00 00
    
  2. Initialize:

    $ pkcs15-init --create-pkcs15 -T -p pkcs15+onepin --pin 123456 --puk 12345678
    Using reader with a card: Feitian ePass2003 00 00
    Failed to create PKCS #15 meta structure: Security status not satisfied
    

The initialization works for me on 0.25.0 rc1. But there were other problems with EC (I believe the https://github.com/OpenSC/OpenSC/pull/3045 fixed them, so I tried 0.27.0 rc1 to check if the fix works).

Expected behavior

The token is being initialized correctly. And I can create and use an EC keypair.

Actual behavior

The token is not being initialized correctly. I was not able to test EC keypair creation.

OpenSC version

0.27.0 rc1, 0.25.0 rc1

Operating system

Ubuntu 26.04

Smart card model or security token

Feitian ePass2003

Application used with smart card

none

Logs and debug output
Logs from initialization

root@cc175c2f6ae3:/# export OPENSC_DEBUG="3"
root@cc175c2f6ae3:/# pkcs15-init --create-pkcs15 -T -p pkcs15+onepin --pin 123456 --puk 12345678
P:36; T:0x140582441826368 10:15:11.828 [pkcs15-init] ctx.c:754:process_config_file: Used configuration file '/etc/opensc/opensc.conf'
P:36; T:0x140582441826368 10:15:11.828 [pkcs15-init] ctx.c:1007:sc_context_create: ===================================
P:36; T:0x140582441826368 10:15:11.829 [pkcs15-init] ctx.c:1008:sc_context_create: OpenSC version: 0.27.0rc1
P:36; T:0x140582441826368 10:15:11.829 [pkcs15-init] ctx.c:1009:sc_context_create: Configured for pkcs15-init (/usr/bin/pkcs15-init)
P:36; T:0x140582441826368 10:15:11.830 [pkcs15-init] reader-pcsc.c:908:pcsc_init: PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1
P:36; T:0x140582441826368 10:15:11.830 [pkcs15-init] reader-pcsc.c:1415:pcsc_detect_readers: called
P:36; T:0x140582441826368 10:15:11.830 [pkcs15-init] reader-pcsc.c:1428:pcsc_detect_readers: Probing PC/SC readers
P:36; T:0x140582441826368 10:15:11.830 [pkcs15-init] reader-pcsc.c:1481:pcsc_detect_readers: Establish PC/SC context
P:36; T:0x140582441826368 10:15:12.134 [pkcs15-init] reader-pcsc.c:1364:pcsc_add_reader: Adding new PC/SC reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.134 [pkcs15-init] reader-pcsc.c:373:refresh_attributes: Feitian ePass2003 00 00 check
P:36; T:0x140582441826368 10:15:12.134 [pkcs15-init] reader-pcsc.c:439:refresh_attributes: current  state: 0x00000022
P:36; T:0x140582441826368 10:15:12.134 [pkcs15-init] reader-pcsc.c:440:refresh_attributes: previous state: 0x00000000
P:36; T:0x140582441826368 10:15:12.134 [pkcs15-init] reader-pcsc.c:493:refresh_attributes: card present, changed
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1582:pcsc_detect_readers: Feitian ePass2003 00 00:SCardConnect(SHARED): 0x00000000
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1163:detect_reader_features: called
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1165:detect_reader_features: Requesting reader features ...
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1183:detect_reader_features: Reader feature 12 found
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1104:part10_detect_max_data: get dwMaxAPDUDataSize property returned 65536
P:36; T:0x140582441826368 10:15:12.144 [pkcs15-init] reader-pcsc.c:1143:part10_get_vendor_product: id_vendor=096e id_product=0807
P:36; T:0x140582441826368 10:15:12.145 [pkcs15-init] reader-pcsc.c:1310:detect_reader_features: Reader supports sending 65536 bytes of data
P:36; T:0x140582441826368 10:15:12.145 [pkcs15-init] reader-pcsc.c:1323:detect_reader_features: Reader supports receiving 65536 bytes of data
P:36; T:0x140582441826368 10:15:12.154 [pkcs15-init] reader-pcsc.c:1597:pcsc_detect_readers: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.154 [pkcs15-init] sc.c:339:sc_detect_card_presence: called
P:36; T:0x140582441826368 10:15:12.154 [pkcs15-init] reader-pcsc.c:503:pcsc_detect_card_presence: called
P:36; T:0x140582441826368 10:15:12.154 [pkcs15-init] reader-pcsc.c:373:refresh_attributes: Feitian ePass2003 00 00 check
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] reader-pcsc.c:412:refresh_attributes: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] reader-pcsc.c:511:pcsc_detect_card_presence: returning with: 1
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] sc.c:350:sc_detect_card_presence: returning with: 1
Using reader with a card: Feitian ePass2003 00 00
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] sc.c:339:sc_detect_card_presence: called
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] reader-pcsc.c:503:pcsc_detect_card_presence: called
P:36; T:0x140582441826368 10:15:12.156 [pkcs15-init] reader-pcsc.c:373:refresh_attributes: Feitian ePass2003 00 00 check
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] reader-pcsc.c:412:refresh_attributes: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] reader-pcsc.c:511:pcsc_detect_card_presence: returning with: 1
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] sc.c:350:sc_detect_card_presence: returning with: 1
Connecting to card in reader Feitian ePass2003 00 00...
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] card.c:250:sc_connect_card: called
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] reader-pcsc.c:642:pcsc_connect: called
P:36; T:0x140582441826368 10:15:12.158 [pkcs15-init] reader-pcsc.c:373:refresh_attributes: Feitian ePass2003 00 00 check
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] reader-pcsc.c:412:refresh_attributes: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] reader-pcsc.c:666:pcsc_connect: Initial protocol: T=1
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] card.c:275:sc_connect_card: matching configured ATRs
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] card.c:319:sc_connect_card: matching built-in ATRs
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'skeid'
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'dtrust'
P:36; T:0x140582441826368 10:15:12.160 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'cardos'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'gemsafeV1'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'starcos'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'tcos'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'oberthur'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'authentic'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card-authentic.c:393:authentic_match_card:
try to match card with ATR (23 bytes):
3B 9F 95 81 31 FE 9F 00 66 46 53 05 10 11 40 71 ;...1...fFS...@q
DF 00 00 03 90 00 D1                            .......

P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card-authentic.c:396:authentic_match_card: card not matched
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'iasecc'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card-iasecc.c:359:iasecc_match_card: card not matched
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'belpic'
P:36; T:0x140582441826368 10:15:12.161 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'entersafe'
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card-entersafe.c:137:entersafe_match_card: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card.c:337:sc_connect_card: trying driver 'epass2003'
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card-epass2003.c:1679:epass2003_match_card: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card.c:351:sc_connect_card: matched: epass2003
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card-epass2003.c:1698:epass2003_init: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card-epass2003.c:1650:get_data: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.162 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:0, INS:CA, P1:1, P2:86, data(0) (nil)
P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (5 bytes):
00 CA 01 86 00 .....

P:36; T:0x140582441826368 10:15:12.163 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.188 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (38 bytes):
80 01 01 81 02 1D D5 82 01 00 83 02 00 00 84 01 ................
01 85 0A 00 9F 33 33 30 6C 80 1A 00 02 86 01 00 .....330l.......
88 02 61 00 90 00                               ..a...

P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] card-epass2003.c:907:mutual_auth: called
P:36; T:0x140582441826368 10:15:12.189 [pkcs15-init] card-epass2003.c:696:gen_init_key: called
P:36; T:0x140582441826368 10:15:12.190 [pkcs15-init] card-epass2003.c:1627:epass2003_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.190 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:80, INS:50, P1:0, P2:0, data(8) 0x7fdbe7393ac0
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (14 bytes):
80 50 00 00 08 6E 66 A0 EA 5E A3 E6 AA 1C .P...nf..^....

P:36; T:0x140582441826368 10:15:12.191 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (30 bytes):
06 05 04 03 02 01 80 1A 00 02 FF 01 C9 99 91 94 ................
FB EE 96 8A DB 1B 96 48 76 F9 E3 6F 90 00       .......Hv..o..

P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.209 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.210 [pkcs15-init] card-epass2003.c:789:gen_init_key: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.210 [pkcs15-init] card-epass2003.c:813:verify_init_key: called
P:36; T:0x140582441826368 10:15:12.210 [pkcs15-init] card-epass2003.c:1627:epass2003_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:84, INS:82, P1:3, P2:0, data(16) 0x7ffe128afff0
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (21 bytes):
84 82 03 00 10 75 83 89 30 18 13 C5 26 8B 70 44 .....u..0...&.pD
4E 37 82 56 96                                  N7.V.

P:36; T:0x140582441826368 10:15:12.211 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (2 bytes):
90 00 ..

P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] card-epass2003.c:920:mutual_auth: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.239 [pkcs15-init] card-epass2003.c:1761:epass2003_init: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:378:sc_connect_card: card info name:'epass2003', type:19003, flags:0x0, max_send/recv_size:232/216
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:1634:sc_card_sm_check: called
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:1639:sc_card_sm_check: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:393:sc_connect_card: returning with: 0 (Success)
Using card driver epass2003.
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] pkcs15-lib.c:315:sc_pkcs15init_bind: called
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:1105:sc_card_ctl: called with cmd=4
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card-epass2003.c:3018:epass2003_card_ctl: called
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card-epass2003.c:3020:epass2003_card_ctl: cmd is 4
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:1112:sc_card_ctl: card_ctl(4) not supported
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card.c:836:sc_select_file: called; type=2, path=3f0050154946
P:36; T:0x140582441826368 10:15:12.240 [pkcs15-init] card-epass2003.c:2013:epass2003_select_file: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:0, INS:A4, P1:0, P2:0, data(2) 0x7ffe128af8f0
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] sm.c:133:sc_sm_single_transmit: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] sm.c:134:sc_sm_single_transmit: SM_MODE:200
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] card-epass2003.c:1578:epass2003_sm_get_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] card-epass2003.c:1288:epass2003_sm_wrap_apdu: called
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] card-epass2003.c:1618:epass2003_sm_get_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.241 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:A4, P1:0, P2:0, data(32) 0x562f17b81ea0
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (38 bytes):
0C A4 00 00 20 87 11 01 9F 25 D7 92 3A D2 25 E2 .... ....%..:.%.
DF 0E 8C CA 2D DB B1 4F 97 01 00 8E 08 43 6F 05 ....-..O.....Co.
14 0C 00 71 25 00                               ...q%.

P:36; T:0x140582441826368 10:15:12.242 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.274 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (67 bytes):
87 31 01 FF 26 76 06 56 59 91 0D 6A 22 C7 88 EE .1..&v.VY..j"...
39 A4 42 69 D3 89 37 DF 85 B7 5D FB 85 17 E4 84 9.Bi..7...].....
C3 0B 45 BE 4E B9 84 75 6A D4 94 B5 C3 37 73 15 ..E.N..uj....7s.
67 B2 5A 99 02 90 00 8E 08 80 13 03 D3 E1 DE 77 g.Z............w
19 90 00                                        ...

P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:1545:epass2003_sm_free_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:1506:epass2003_sm_unwrap_apdu: called
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:1531:epass2003_sm_unwrap_apdu: unwrapped APDU: resplen 40, SW 9000
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:1534:epass2003_sm_unwrap_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] card-epass2003.c:1566:epass2003_sm_free_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.275 [pkcs15-init] apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2283:epass2003_process_fci: processing FCI bytes
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2287:epass2003_process_fci:   file identifier: 0x3F00
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2353:epass2003_process_fci: type DF, EF structure 56
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2362:epass2003_process_fci:
File name (14 bytes):
65 6E 74 65 72 73 61 66 65 2D 66 69 70 73 entersafe-fips

P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card-epass2003.c:1945:epass2003_select_fid: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.276 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:0, INS:A4, P1:0, P2:0, data(2) 0x7ffe128af8f0
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] sm.c:133:sc_sm_single_transmit: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] sm.c:134:sc_sm_single_transmit: SM_MODE:200
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card-epass2003.c:1578:epass2003_sm_get_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card-epass2003.c:1288:epass2003_sm_wrap_apdu: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card-epass2003.c:1618:epass2003_sm_get_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.277 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.278 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.278 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:A4, P1:0, P2:0, data(32) 0x562f17b81ea0
P:36; T:0x140582441826368 10:15:12.278 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.278 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (38 bytes):
0C A4 00 00 20 87 11 01 52 78 18 94 52 A5 F2 C4 .... ...Rx..R...
31 0E BE 7F B9 25 09 5B 97 01 00 8E 08 35 6E 84 1....%.[.....5n.
98 EB 85 9F 4B 00                               ....K.

P:36; T:0x140582441826368 10:15:12.278 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.299 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (67 bytes):
87 31 01 86 A0 FB 00 FC 7F AD 5E 83 93 FF 86 BD .1........^.....
E2 9F 22 0B 69 7E E5 41 50 5E 24 F9 97 CA 5A 9D ..".i~.AP^$...Z.
88 86 BE 55 2B 07 54 1D 04 DC A7 F8 E0 34 1F 14 ...U+.T......4..
A6 29 E1 99 02 90 00 8E 08 5F 18 83 A0 E8 38 E3 .)......._....8.
81 90 00                                        ...

P:36; T:0x140582441826368 10:15:12.299 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:1545:epass2003_sm_free_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:1506:epass2003_sm_unwrap_apdu: called
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:1531:epass2003_sm_unwrap_apdu: unwrapped APDU: resplen 38, SW 9000
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:1534:epass2003_sm_unwrap_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card-epass2003.c:1566:epass2003_sm_free_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.300 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2283:epass2003_process_fci: processing FCI bytes
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2287:epass2003_process_fci:   file identifier: 0x5015
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2353:epass2003_process_fci: type DF, EF structure 56
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2362:epass2003_process_fci:
File name (12 bytes):
A0 00 00 00 63 50 4B 43 53 2D 31 35 ....cPKCS-15

P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:2241:sec_attr_to_entry: called
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] card-epass2003.c:1945:epass2003_select_fid: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.301 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:0, INS:A4, P1:0, P2:0, data(2) 0x7ffe128af970
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] sm.c:133:sc_sm_single_transmit: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] sm.c:134:sc_sm_single_transmit: SM_MODE:200
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card-epass2003.c:1578:epass2003_sm_get_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card-epass2003.c:1288:epass2003_sm_wrap_apdu: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card-epass2003.c:1618:epass2003_sm_get_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.302 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:A4, P1:0, P2:0, data(32) 0x562f17b81ea0
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (38 bytes):
0C A4 00 00 20 87 11 01 10 C0 5F 47 27 91 4B 6E .... ....._G'.Kn
47 11 58 10 DA EF 8C 15 97 01 00 8E 08 9E 31 0A G.X...........1.
52 CF 5A 63 CD 00                               R.Zc..

P:36; T:0x140582441826368 10:15:12.303 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.329 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (16 bytes):
99 02 6A 82 8E 08 AD 7D 10 13 07 38 0A F0 6A 82 ..j....}...8..j.

P:36; T:0x140582441826368 10:15:12.329 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.329 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.329 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:1545:epass2003_sm_free_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:1506:epass2003_sm_unwrap_apdu: called
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: File not found
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:1531:epass2003_sm_unwrap_apdu: unwrapped APDU: resplen 0, SW 6A82
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:1534:epass2003_sm_unwrap_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card-epass2003.c:1566:epass2003_sm_free_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.330 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: File not found
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] card-epass2003.c:1892:epass2003_select_fid_: returning with: -1201 (File not found)
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] card-epass2003.c:1937:epass2003_select_fid: APDU transmit failed: -1201 (File not found)
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] card.c:858:sc_select_file: 'SELECT' error: -1201 (File not found)
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] profile.c:338:sc_profile_load: called
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] profile.c:358:sc_profile_load: Using profile directory '/usr/share/opensc'.
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] profile.c:366:sc_profile_load: Trying profile file /usr/share/opensc/pkcs15.profile
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] profile.c:371:sc_profile_load: profile /usr/share/opensc/pkcs15.profile loaded ok
P:36; T:0x140582441826368 10:15:12.331 [pkcs15-init] profile.c:385:sc_profile_load: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:338:sc_profile_load: called
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:358:sc_profile_load: Using profile directory '/usr/share/opensc'.
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:366:sc_profile_load: Trying profile file /usr/share/opensc/epass2003.profile
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:371:sc_profile_load: profile /usr/share/opensc/epass2003.profile loaded ok
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:385:sc_profile_load: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:397:sc_profile_finish: called
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] profile.c:440:sc_profile_finish: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] pkcs15-lib.c:422:sc_pkcs15init_bind: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.332 [pkcs15-init] reader-pcsc.c:717:pcsc_lock: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:792:sc_pkcs15init_add_app: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:4487:sc_pkcs15init_qualify_pin: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:4509:sc_pkcs15init_qualify_pin: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-epass2003.c:195:epass2003_pkcs15_pin_reference: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-epass2003.c:204:epass2003_pkcs15_pin_reference: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:4487:sc_pkcs15init_qualify_pin: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:4509:sc_pkcs15init_qualify_pin: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-lib.c:852:sc_pkcs15init_add_app: Add virtual SO_PIN('User PIN',flags:32,reference:1,path:'3f005015')
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] pkcs15-epass2003.c:52:epass2003_pkcs15_init_card: called
P:36; T:0x140582441826368 10:15:12.333 [pkcs15-init] ePass2003 doesn't support SO-PIN and SO-PUK. You can unblock key with PUK.
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card.c:569:sc_create_file: called; type=2, path=3f003f00, id=16128, size=768
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:2496:epass2003_construct_fci: SC_FILE_ACL
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:2221:acl_to_ac_byte: returning with: 144
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:2221:acl_to_ac_byte: returning with: 144
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:2221:acl_to_ac_byte: returning with: 144
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:0, INS:E0, P1:0, P2:0, data(40) 0x7ffe128b0050
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] sm.c:133:sc_sm_single_transmit: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] sm.c:134:sc_sm_single_transmit: SM_MODE:200
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:1578:epass2003_sm_get_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:1288:epass2003_sm_wrap_apdu: called
P:36; T:0x140582441826368 10:15:12.334 [pkcs15-init] card-epass2003.c:1618:epass2003_sm_get_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:E0, P1:0, P2:0, data(61) 0x562f17b81ea0
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (67 bytes):
0C E0 00 00 3D 87 31 01 EA 7D 32 BC 41 F3 D6 E7 ....=.1..}2.A...
DF A2 59 79 BD 7C 6E 2C AE AF E1 9F 85 0B 39 B4 ..Yy.|n,......9.
83 DE 53 8B 2A 3A 01 82 4E F3 97 90 62 DE 13 C3 ..S.*:..N...b...
DB 3E B8 EA 62 04 2D 22 8E 08 AD 0F BA BE D7 5C .>..b.-".......\
16 6B 00                                        .k.

P:36; T:0x140582441826368 10:15:12.335 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.370 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (16 bytes):
99 02 69 85 8E 08 DF 43 35 53 4F 1D 40 C6 69 85 [email protected].

P:36; T:0x140582441826368 10:15:12.370 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:1545:epass2003_sm_free_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:1506:epass2003_sm_unwrap_apdu: called
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: Conditions of use not satisfied
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:1531:epass2003_sm_unwrap_apdu: unwrapped APDU: resplen 0, SW 6985
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:1534:epass2003_sm_unwrap_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] card-epass2003.c:1566:epass2003_sm_free_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.371 [pkcs15-init] sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card-epass2003.c:907:mutual_auth: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card-epass2003.c:696:gen_init_key: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card-epass2003.c:1627:epass2003_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.372 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:80, INS:50, P1:0, P2:0, data(8) 0x7fdbe7393ac0
P:36; T:0x140582441826368 10:15:12.373 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.373 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (14 bytes):
80 50 00 00 08 74 A2 2C 45 11 37 88 B9 1C .P...t.,E.7...

P:36; T:0x140582441826368 10:15:12.373 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.400 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (30 bytes):
06 05 04 03 02 01 80 1A 00 02 FF 01 73 94 BE A7 ............s...
D0 FC CD EE 36 FB B5 F8 F8 20 C2 D3 90 00       ....6.... ....

P:36; T:0x140582441826368 10:15:12.400 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card-epass2003.c:789:gen_init_key: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card-epass2003.c:813:verify_init_key: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card-epass2003.c:1627:epass2003_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.401 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:84, INS:82, P1:3, P2:0, data(16) 0x7ffe128afc20
P:36; T:0x140582441826368 10:15:12.402 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.402 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (21 bytes):
84 82 03 00 10 B9 84 35 C1 79 16 C8 EF 45 82 71 .......5.y...E.q
15 C5 87 D8 C4                                  .....

P:36; T:0x140582441826368 10:15:12.402 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.430 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (2 bytes):
90 00 ..

P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: (null)
P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] card-epass2003.c:920:mutual_auth: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.431 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:E0, P1:0, P2:0, data(40) 0x7ffe128b0050
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] sm.c:133:sc_sm_single_transmit: called
P:36; T:0x140582441826368 10:15:12.432 [pkcs15-init] sm.c:134:sc_sm_single_transmit: SM_MODE:200
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] card-epass2003.c:1578:epass2003_sm_get_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] card-epass2003.c:1288:epass2003_sm_wrap_apdu: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] card-epass2003.c:1618:epass2003_sm_get_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] apdu.c:550:sc_transmit_apdu: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] card.c:466:sc_lock: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] card.c:505:sc_lock: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] apdu.c:515:sc_transmit: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] apdu.c:363:sc_single_transmit: called
P:36; T:0x140582441826368 10:15:12.433 [pkcs15-init] apdu.c:367:sc_single_transmit: CLA:C, INS:E0, P1:0, P2:0, data(61) 0x562f17b81ea0
P:36; T:0x140582441826368 10:15:12.434 [pkcs15-init] reader-pcsc.c:336:pcsc_transmit: reader 'Feitian ePass2003 00 00'
P:36; T:0x140582441826368 10:15:12.434 [pkcs15-init] reader-pcsc.c:337:pcsc_transmit:
Outgoing APDU (67 bytes):
0C E0 00 00 3D 87 31 01 CF 49 97 4D A8 57 8E B1 ....=.1..I.M.W..
E7 E1 EF 76 DD CD 15 24 A5 5A 74 E4 2F 05 7D 6E ...v...$.Zt./.}n
C1 73 88 8C B9 53 09 A6 FA 6F 23 54 89 C9 EA 35 .s...S...o#T...5
DD 36 50 9D BE 95 C4 45 8E 08 AD 72 92 8A D4 2A .6P....E...r...*
5D 4E 00                                        ]N.

P:36; T:0x140582441826368 10:15:12.434 [pkcs15-init] reader-pcsc.c:249:pcsc_internal_transmit: called
P:36; T:0x140582441826368 10:15:12.461 [pkcs15-init] reader-pcsc.c:346:pcsc_transmit:
Incoming APDU (16 bytes):
99 02 69 85 8E 08 F4 61 40 02 94 75 B9 0C 69 85 [email protected].

P:36; T:0x140582441826368 10:15:12.461 [pkcs15-init] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.461 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.461 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:1545:epass2003_sm_free_wrapped_apdu: called
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:1506:epass2003_sm_unwrap_apdu: called
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: Conditions of use not satisfied
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:1531:epass2003_sm_unwrap_apdu: unwrapped APDU: resplen 0, SW 6985
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:1534:epass2003_sm_unwrap_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:1566:epass2003_sm_free_wrapped_apdu: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] apdu.c:539:sc_transmit: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:257:epass2003_check_sw: Conditions of use not satisfied
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card-epass2003.c:2597:epass2003_create_file: APDU sw1/2 wrong: -1209 (Not allowed)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] card.c:581:sc_create_file: returning with: -1209 (Not allowed)
P:36; T:0x140582441826368 10:15:12.462 [pkcs15-init] pkcs15-epass2003.c:64:epass2003_pkcs15_init_card: Create MF failed: -1209 (Not allowed)
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] pkcs15-lib.c:866:sc_pkcs15init_add_app: Card specific init failed: -1209 (Not allowed)
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] pkcs15-lib.c:963:sc_pkcs15init_add_app: returning with: -1209 (Not allowed)
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] card.c:515:sc_unlock: called
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] reader-pcsc.c:759:pcsc_unlock: called
Failed to create PKCS #15 meta structure: Not allowed
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] pkcs15-lib.c:432:sc_pkcs15init_unbind: called
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] pkcs15-lib.c:433:sc_pkcs15init_unbind: Pksc15init Unbind: 0:(nil):1
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] card.c:410:sc_disconnect_card: called
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] reader-pcsc.c:698:pcsc_disconnect: Feitian ePass2003 00 00:SCardDisconnect returned: 0x00000000
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] card.c:430:sc_disconnect_card: returning with: 0 (Success)
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] ctx.c:1092:sc_release_context: called
P:36; T:0x140582441826368 10:15:12.463 [pkcs15-init] reader-pcsc.c:996:pcsc_finish: called

Checklist
  • I am using a supported OpenSC version
  • I have searched existing issues to avoid duplicates
Lenguaje dominante
C
Estrellas
3.1k
Forks
858
Merge medio
4 d 4 h
PR fusionados (30 d)
16

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenSC/OpenSC

Todos los issues de OpenSC/OpenSC

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.