Andreas Jellinghaus a écrit :
> On Thursday 06 September 2007 12:53:46 Haizad wrote:
>   
>> I have been testing the OpenSC library to issue a digital certificate in a
>> smart card for SETEC. But when I try to generate a private key, the error
>> is raised "Unrecognized Card". How can I set the new ATR into the OpenSC
>> conf, so that I can issue a certificate into this new SETEC card? How to
>> read this ATR value so that it can issue this certificate easily?
>>     
>
> you can try to either edit card-setcos.c and add the atr and recompile.
> of fill in the opensc.conf template for adding atr:
>
> atr would be the atr.
> atr_mask would be the same length as the atr, but all "ff".
> driver would be setcos I think.
> name is not important. "Net Setcos card" or something.
> type: I'm not sure. so far we have these types:
>         /* setcos driver */
>         SC_CARD_TYPE_SETCOS_BASE = 6000,
>         SC_CARD_TYPE_SETCOS_GENERIC,
>         SC_CARD_TYPE_SETCOS_PKI,
>         SC_CARD_TYPE_SETCOS_FINEID,
>         SC_CARD_TYPE_SETCOS_FINEID_V2,
>         SC_CARD_TYPE_SETCOS_NIDEL,
>         SC_CARD_TYPE_SETCOS_44 = 6100,
>         SC_CARD_TYPE_SETCOS_EID_V2_0,
>         SC_CARD_TYPE_SETCOS_EID_V2_1,
>
> mybe try 6001? or 6101 or 6102?
>
> warning: I don't have a setcos card and I'm not sure anyone has one
> and tested opensc with it. I think the driver is used for many eid cards, but
> I'm not aware of anyone using it with plain smart cards. so the pkcs15init
> code to initialize plain cards might not work at all - or even make you card
> unuseable. try any of this only on your own if you can afford to loose a card.
>   
Hi,

I can confirm that the pkcs15init code works perfectly well with plain
SetCOS 4.4.1B cards.

Cheers,

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

Reply via email to