Page 1 of 1

How to get IC serial number from java card

Posted: Thu Oct 19, 2017 10:40 pm
by Kandhf
Have anyone here succeeded in getting IC serial number from java card?

In the Card Specification 2.1:
GET_DATA APDU should response the Issuer Identification Number or Card Image number.


- GET_DATA Identification Number : 00 CA 00 42 00
- GET_DATA Card Image Number : 00 CA 00 45 00

But I only got the error code 6700. Could anyone give me some clues to help me out? Thanks.

Re: How to get IC serial number from java card

Posted: Fri Oct 20, 2017 6:04 am
by lostsiwonlw
Select the card manager and then send the below APDU to the card

init update
CLA INS P1 P2 Lc Data Le
>> 80 50 00 00 08 2021222324252627 00

Then bytes responseAPDU[4] - responseAPDU[7] are the serial number.

Re: How to get IC serial number from java card

Posted: Wed Nov 08, 2017 9:37 am
by stanneraustin
just for ICserial no need to use init update.. any wrong attempt or non successful external auth after this count as bad counter. maxim 10 allowed on older then card will be locked for ever.

use get CPLC data
80CA9F7F00

you will get all details here without init update.