OPENSC_DEBUG=3 pkcs11-tool -lt --module /usr/lib/x86_64-linux-
gnu/opensc-pkcs11.so

The earliest issue is a 'Record not found', but I'm not sure if that is
important.

P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] 
card-epass2003.c:1029:epass2003_sm_free_wrapped_apdu: returning with: 0 
(Success)
P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] 
sm.c:173:sc_sm_single_transmit: returning with: 0 (Success)
P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] 
apdu.c:374:sc_single_transmit: returning with: 0 (Success)
P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] 
apdu.c:537:sc_transmit: returning with: 0 (Success)
P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] card.c:523:sc_unlock: 
called
P:18772; T:0x139877741000704 23:14:29.803 [opensc-pkcs11] 
reader-pcsc.c:737:pcsc_unlock: called
P:18772; T:0x139877741000704 23:14:29.804 [opensc-pkcs11] 
card-epass2003.c:192:epass2003_check_sw: Record not found
P:18772; T:0x139877741000704 23:14:29.804 [opensc-pkcs11] 
iso7816.c:190:iso7816_read_record: returning with: -1202 (Record not found)
P:18772; T:0x139877741000704 23:14:29.804 [opensc-pkcs11] 
card.c:964:sc_read_record: returning with: -1202 (Record not found)
P:18772; T:0x139877741000704 23:14:29.804 [opensc-pkcs11] 
dir.c:265:sc_enum_apps: returning with: 0 (Success)


Next there is a, 'Requested object not found'

P:18772; T:0x139877741000704 23:14:30.086 [opensc-pkcs11] 
pkcs15-pin.c:149:sc_pkcs15_decode_aodf_entry: AuthType: PIN
P:18772; T:0x139877741000704 23:14:30.086 [opensc-pkcs11] 
pkcs15.c:2139:sc_pkcs15_parse_df: returning with: 0 (Success)
P:18772; T:0x139877741000704 23:14:30.086 [opensc-pkcs11] 
pkcs15.c:1771:sc_pkcs15_find_pin_by_flags: returning with: -1407 (Requested 
object not found)
P:18772; T:0x139877741000704 23:14:30.087 [opensc-pkcs11] 
pkcs15.c:1744:sc_pkcs15_find_pin_by_flags: called
P:18772; T:0x139877741000704 23:14:30.087 [opensc-pkcs11] 
pkcs15.c:1745:sc_pkcs15_find_pin_by_flags: Find PIN flags:0x12, mask:0xD2, 
index:-1

Before I am prompted for the pin I see, 'PIN code or key incorrect'

P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] sec.c:200:sc_pin_cmd: 
called
P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] 
card-epass2003.c:2769:epass2003_pin_cmd: called
P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] 
card-epass2003.c:2777:epass2003_pin_cmd: returning with: -1214 (PIN code or key 
incorrect)
P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] sec.c:256:sc_pin_cmd: 
returning with: -1214 (PIN code or key incorrect)
P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] card.c:523:sc_unlock: 
called
P:18772; T:0x139877741000704 23:14:30.619 [opensc-pkcs11] 
reader-pcsc.c:737:pcsc_unlock: called
P:18772; T:0x139877741000704 23:14:30.620 [opensc-pkcs11] 
pkcs15-pin.c:742:sc_pkcs15_get_pin_info: returning with: -1214 (PIN code or key 
incorrect)
P:18772; T:0x139877741000704 23:14:30.620 [opensc-pkcs11] 
framework-pkcs15.c:609:C_GetTokenInfo: C_GetTokenInfo(0) returns CKR_OK

Logging in to "ePass2003 (User PIN)".
Please enter User PIN: 


after Quite a bit more logging it again reports 'PIN code or key
incorrect'

P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] 
card-epass2003.c:2769:epass2003_pin_cmd: called
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] 
card-epass2003.c:2777:epass2003_pin_cmd: returning with: -1214 (PIN code or key 
incorrect)
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] sec.c:256:sc_pin_cmd: 
returning with: -1214 (PIN code or key incorrect)
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] card.c:523:sc_unlock: 
called
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] 
reader-pcsc.c:737:pcsc_unlock: called
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] 
pkcs15-pin.c:742:sc_pkcs15_get_pin_info: returning with: -1214 (PIN code or key 
incorrect)
P:18772; T:0x139877741000704 23:14:40.826 [opensc-pkcs11] 
pkcs11-session.c:294:C_GetSessionInfo: C_GetSessionInfo(0x55883fa3f190) = CKR_OK

And finally it ends

error: PKCS11 function C_DigestInit failed: rv = CKR_GENERAL_ERROR (0x5)
Aborting.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1972753

Title:
  opensc-pkcs11 failing epass2003_pin_cmd after 22.04 upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1972753/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to