Andreas Jellinghaus-2 wrote:
> 
> On Monday 06 August 2007 08:36:12 mkarmowski wrote:
>> pksc15-init is compatible with cardos 4.3b?
> 
> yes, we have a driver for it. but it needs the card in administration
> state I think. other states are:
>  - manufacturing: sorry, can't use it, you need to use some software
>    containing siemens prietory and copyrighted codes to set it up.
>  - operational: sorry, too late, your card has already been formatted.
>    but maybe you can erase it?
> 

Before a moment i got new card, from oryginal package. I'm using
cardos-info:


C:\opensc\trunk\src\tools>cardos-info
Info : CardOS V4.3B (C) Siemens AG 1994-2004
Chip type: 124
Serial number: 26 67 9d 0e 26 06
Full prom dump:
33 66 00 1B 5B 5B 5B 5B 7C FF 26 67 9D 0E 26 06 3f..[[[[|.&g..&.
00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
OS Version: 200.8 (that's CardOS M4.3b)
Current life cycle: 16 (operational)
Security Status of current DF:
Free memory : 861
ATR Status: 0x0 ROM-ATR
Packages installed:
E1 09 01 04 13 02 C8 08 8F 01 01 ...........
Ram size: 4, Eeprom size: 64, cpu type: 66, chip config: 63
Free eeprom memory: 28969
System keys: PackageLoadKey (version 0x00, retries 10)
System keys: StartKey (version 0x45, retries 10)
Path to current DF:


Tham mean new card is in operational mode. I use pkcs15-tool --dump below:


C:\opensc\trunk\src\tools>pkcs15-tool --dump
PKCS#15 Card [CardOS PKCS#15 Default Profile]:
        Version        : 1
        Serial number  :
        Manufacturer ID: Siemens AG (C)
        Flags          : Login required, PRN generation

PIN [PIN]
        Com. Flags: 0x3
        ID        : 01
        Flags     : [0x11], case-sensitive, initialized
        Length    : min_len:4, max_len:16, stored_len:0
        Pad char  : 0x00
        Reference : 129
        Type      : UTF-8
        Path      :

PIN [SO-PIN]
        Com. Flags: 0x3
        ID        : 02
        Flags     : [0x99], case-sensitive, unblock-disabled, initialized,
soPin
        Length    : min_len:4, max_len:16, stored_len:0
        Pad char  : 0x00
        Reference : 130
        Type      : UTF-8
        Path      :

PIN [Secondary Authentication PIN]
        Com. Flags: 0x3
        ID        : 03
        Flags     : [0x13], case-sensitive, local, initialized
        Length    : min_len:4, max_len:16, stored_len:0
        Pad char  : 0x00
        Reference : 144
        Type      : UTF-8
        Path      :



Andreas Jellinghaus-2 wrote:
> 
>> I using new card.
>> How I can create and store file on card?
> 
> you can give below command a  try. but it might kill your card so that you 
> cannot recover it at all. no guarantee of any kind. if you try this and
> the 
> card is dead you are on your own. don't do this unless you are 100% sure
> it is ok to kill the card.
> 
>  $OPENSCTOOL -s 
> 84:06:00:00:10:06:00:00:08:00:00:00:00:f7:6a:fc:09:e6:d5:f4:65:00
> $OPENSCTOOL -s 
> 84:40:00:01:38:45:3a:6d:c4:d3:40:8d:95:43:23:0b:38:35:f1:ca:a5:d9:27:03:50:52:35:c4:65:c4:3e:da:ce:3c:ba:d7:60:d2:52:a4:6e:fc:d2:53:c7:77:05:0c:c7:1f:89:a0:f5:50:7f:d8:04:59:d0:78:e7:00
> 
> with /path/to/opensc/bin/opensc-tool as $OPENSCTOOL.
> 

I take a chance and send apdu commands above, and get result below:


C:\opensc\trunk\src\tools>opensc-tool -s
84:06:00:00:10:06:00:00:08:00:00:00:00:f7:6a:fc:09:e6:d5:f4:65:00
Sending: 84 06 00 00 10 06 00 00 08 00 00 00 00 F7 6A FC 09 E6 D5 F4 65 00
Received (SW1=0x6D, SW2=0x00)

C:\opensc\trunk\src\tools>opensc-tool -s
84:40:00:01:38:45:3a:6d:c4:d3:40:8d:95:43:23:0b:38:35:f1:ca:a5:d9:27:03:50:52:3
5:c4:65:c4:3e:da:ce:3c:ba:d7:60:d2:52:a4:6e:fc:d2:53:c7:77:05:0c:c7:1f:89:a0:f5:50:7f:d8:04:59:d0:78:e7:00
Sending: 84 40 00 01 38 45 3A 6D C4 D3 40 8D 95 43 23 0B 38 35 F1 CA A5 D9
27 03 50 52 35 C4 65 C4 3E DA CE 3C BA D7 60 D2 52 A4 6E FC D2 53 C7 77 05
0C C7 1F 89 A0 F5 50 7F D8 04 59 D0 78 E7 00
Received (SW1=0x6D, SW2=0x00)


Why new card is in operational mode?
I want use smartcard only for store file with username and password. I dont
need certificates and keys. Have you any sollution for me?
-- 
View this message in context: 
http://www.nabble.com/CardOs-4.3b-problem-tf4169699.html#a12068311
Sent from the OpenSC - Dev mailing list archive at Nabble.com.

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to