Luiz Reuter Silva Torro schrieb:
> Hey Christophe,
>  
> I tested the original script "listgemXpressoProR3_2E64.txt" on a
> GXPPro-R3.2 STD PTS card and it worked fine, but it is a slightly
> diferent model from yours. It's ATR is 3B7D94000080318065B08301019083009000.

You can try to to omit the gemXpressoPro switch. Maybe it works. I do
not have a manual for the card and so I don't know which specific stuff
is implemented. You can also try if it is a mode_211 card (GP 2.1.1).
And try mode_201 and gemXpressoPro. But obey, you have only 10 tries!

Regards,
Karsten
>  
> Here is the output:
>  
> GPShell.exe listgemXpressoProR3_2E64.txt
> mode_201
> gemXpressoPro
> enable_trace
> establish_context
> card_connect
> select -AID A000000018434D00
> --> 00A4040008A000000018434D00
> <-- 6F198408A000000018434D00A50D9F6E061291334903029F6501FF9000
> open_sc -security 3 -keyind 0 -keyver 0 -key
> 47454d5850524553534f53414d504c45 // Open secure channel
> --> 80CA9F7F00
> <--
> 9F7F2A4090662212913349030240825901181C25574082000012930000000052830000010100000000000000009000
> --> 8050000008A8BA2D1C9E6F344100
> <-- 4D0040825901181C25570101604B79962D42A7C856C9AF6BEA390EF29000
> --> 84820300106186ADEC11A4E82C6551A7CF6DC93FCB
> <-- 9000
> get_status -element 20
> --> 80F22000024F0000
> <--
> 10A00000001830060200000000000000FF010010A00000001830030100000000000000FF010010A00000001830040100
> 000000000000FE010010A00000001830060200000000000000FE010010A00000001830060100000000000000FF010010A000
> 00001830030100000000000000FE010008A000000018100106010008A000000018100101010007A0000000030000010008A0
> 00000018100102010007A0000000620201010007A0000000620102010007A0000000620101010007A0000000620001010008
> A00000001810010801009000
>  
> List of applets (AID state privileges)
> a00000001830060200000000000000ff        1       0
> a00000001830030100000000000000ff        1       0
> a00000001830040100000000000000fe        1       0
> a00000001830060200000000000000fe        1       0
> a00000001830060100000000000000ff        1       0
> a00000001830030100000000000000fe        1       0
> a000000018100106        1       0
> a000000018100101        1       0
> a0000000030000  1       0
> a000000018100102        1       0
> a0000000620201  1       0
> a0000000620102  1       0
> a0000000620101  1       0
> a0000000620001  1       0
> a000000018100108        1       0
> card_disconnect
> release_context
>  
>  
> Regards
> Luiz Reuter
> 
>     -----Mensagem original-----
>     *De:* [EMAIL PROTECTED]
>     [mailto:[EMAIL PROTECTED] nome de *Christophe
>     Gudin
>     *Enviada em:* sexta-feira, 1 de junho de 2007 06:35
>     *Para:* [email protected]
>     *Assunto:* [Muscle] GemSafeXpresso Card
> 
>     Hello Everyone.
> 
>     I'm in possession of a GemSafeXpresso 32k Card I would like to use
>     for authentication. I've been trying for the last few days to use
>     with open source projects, but unfortunately didn't manage to make
>     it work. The closest I got was with gpshell. I saw a few mails in
>     the list talking about this, but none with a working answer :-(
> 
>     Here are the specs of the card:
>     ATR (this is the only "function" I can get to work... at least it
>     reveals that the card isn't dead...):
>     3b:6d:00:00:80:31:80:65:b0:83:01:02:90:83:00:90:00
>     On the card: GemSafeXpresso Pro R3.2, doc says it's complient with
>     JavaCard 2.1.1 and Global Platform 2.0.1 (as well as ISO 7816). I
>     believe it also has a GemSafe applet pre-installed.
> 
>     When I run the listgemXpressoProR3_2E64.txt script in gpshell, i.e.
>     mode_201
>     gemXpressoPro
>     enable_trace
>     establish_context
>     card_connect
>     select -AID A000000018434D00
> 
>     open_sc -security 3 -keyind 0 -keyver 0 -key
>     47454d5850524553534f53414d504c45 // Open secure channel
>     get_status -element 20
>     card_disconnect
>     release_context 
> 
>     Or if I add as I saw on a mail from the list the derived keys:
>     mode_201
>     gemXpressoPro
>     enable_trace
>     establish_context
>     card_connect
>     select -AID a000000018434d
>     open_sc -security 0 -keyind 00 -keyver 00 -key
>     47454d5850524553534f53414d504c45 -enc_key
>     6ef05c1e2e9ba55b5b2619828743f795 -mac_key
>     15ca7679aa807160881c9f0c50306f6d -kek_key
>     54455354204b45594558542041555448 // Open secure channel
>     get_status -element e0
>     card_disconnect
>     release_context
> 
> 
>     The mutual authentification unfortunately fails. Here's the output:
>     roR3_2E64.txt
>     mode_201
>     gemXpressoPro
>     enable_trace
>     establish_context
>     card_connect
>     select -AID a000000018434d
>     --> 00A4040007A000000018434D
>     <-- 6F198408A000000018434D00A50D9F6E061291334903029F6501FF9000
>     open_sc -security 0 -keyind 00 -keyver 00 -key
>     47454d5850524553534f53414d504c45 -enc_key
>     6ef05c1e2e9ba55b5b2619828743f795 -mac_key
>     15ca7679aa807160881c9f0c50306f6d -kek_key
>     54455354204b45594558542041555448 // Open secure channel
>     --> 80CA9F7F00
>     <--
>     
> 9F7F2A409066221291334903024082B8182B08256D4082000012930000054470380000010100000000000000009000
>     --> 80500000084787BAB31D0DAB0500
>     <-- 4D004082B8182B08256D0D01B26AF91D70FB340624CC7F86139F8B5D9000
>     mutual_authentication() returns 0x80302000 (The verification of the
>     card cryptogram failed.)
> 
> 
>     If anyone knows something about this card or have an advice it would
>     be most welcome and appreciate.
> 
>     Have a great day & week-end!
> 
>     Christophe.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to