Hi,
I'm trying to open a session with a previously added user id on SE050 (OM-SE050ARD board), but when it comes to the VerifySessionUserID APDU, it returns a 6B00 error: Wrong parameter(s) P1-P2.
The APDU header is constructed according to AN12413 section 4.5.2.1. I've also double checked the values in the MW source code (se05x_enums.h) and they seem to be identical.
CLA: 0x80, INS: MGMT (0x04), P1: P1_DEFAULT (0x00), P2: P2_SESSION_USERID (0x2C)
Am I missing something?
The transaction:
--- Select applet
C-APDU: 00 a4 04 00 10 a0 00 00 03 96 54 53 00 00 00 01 03 00 00 00 00 00
R-APDU: 03 01 00 6f ff 01 0b 90 00
--- ret: 0
--- Get version
C-APDU: 80 04 00 20 0b
R-APDU: 41 82 00 07 03 01 00 6f ff 01 0b 90 00
--- Version: 3.1.0
--- ret: 0
--- Create session
C-APDU: 80 04 00 1b 06 41 04 00 00 00 15 0c
R-APDU: 41 82 00 08 01 d5 5f 77 5c 04 cf c4 90 00
--- session id: 01 d5 5f 77 5c 04 cf c4
--- ret: 0
--- Verify session user id
C-APDU: 80 04 00 2c 08 41 06 75 73 65 72 31 00
R-APDU: 6b 00
--- user id: user1
--- ret: -6