Hi,
To obtain the card serial (for building a secure session for example) you can send an
Openplatform "GetData" command requesting CPLC Data (Card Production Life Cycle). This
is only for Openplatform cards (like GemXpresso family for Gemplus).
CMD: Get Data
-> 80 CA 9F 7F 00
<- 9F 7F 2A 00 04 00 15 00 04 12 99 32 30 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90 00
- 9F 70 - is the requested OP TAG
- 2A - is the length (42)
- 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 - is the serial number starting at
offset 0x0A (10)
Of course your card will return an other value...
Regards,
Christophe.
>-----Original Message-----
>From: Rafa Marín López [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 20, 2001 11:49 AM
>To: [EMAIL PROTECTED]
>Subject: [OCF] Serial Number.
>
>
>Hello, all.
>
>I have a problem. I try obtain Java Card's Serial Number
>(GemXpresso 211)
>using OCF but How can I do it?
>
>Thank you.
>
>
>
>---
>> Visit the OpenCard web site at http://www.opencard.org/ for more
>> information on OpenCard---binaries, source code, documents.
>> This list is being archived at
>http://www.opencard.org/archive/opencard/
>
>! To unsubscribe
>from the [EMAIL PROTECTED] mailing list send an email
>! to
>! [EMAIL PROTECTED]
>! containing the word
>! unsubscribe
>! in the body.
>
>
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.