On thursday april 21 2011 19:39:32, Viktor TARASOV wrote : > Hello, > > Le 21/04/2011 14:51, BLANC Gilles a écrit : > > Hi, > > > > this is my first message, so first and foremost I want to tell you that I > > am very pleased to develop in OpenSC. > > welcome to club.
thank you ! :) > > I am currently working on the Oberthur's Cosmo One card (V7.0.1-n) > > support, for an important project. I have access to Oberthur ressources, > > and they are ready to help. Basically, my wish is to contribute with > > Viktor Tarasov to the IASECC support (my card is compliant). > > > > Sadly, I encounter a problem when I try to create or delete an object (or > > even generate a key pair), whereas finding and reading objects seem to > > work perfectly. It doesn't work at all because each time a bad "select" > > APDU refers to a non existing file (always the same). > > > > Let's talk APDU ! :) > > > > Each time it fails and whatever the object is, I have something like: > > > > 99999999 APDU: 00 A4 04 00 10 A0 00 00 00 77 01 08 00 07 00 00 FE 00 00 > > 01 00 00 > > 00035159 SW: 90 00 > > 00000163 APDU: 00 A4 09 04 04 50 15 49 46 00 > > 00014831 SW: 6A 82 > > > > The second select (A4) fails, and it stops here (so basically, it only > > sends two commands). I do not understand where the reference for this > > (wrong) EF comes from. According to the source code, this path is > > directly given to the concerned function (e.g. iasecc_delete_file) by > > opensc library core. How can read work and delete fail ? Is there a wrong > > object reference in the driver source code for my card ? > > Try to repeat your tests with the latest trunk . Done, same problem. :/ > The profile of the oberthur's 'generic PKI' application was obsolete . I see that you have modified the file "src/pkcs15init/iasecc_generic_oberthur.profile". But it does not seem to have influenced my case. (how does that file work ? Do I need to change a configuration file somewhere ?) > Does your card has pre-allocated key-slots ? > Creating of a new key-slots is not yet implemented (ported from the IAS/ECC > dedicated branch). I don't know, actually. I'm going to ask the right person... Thank you, -- Gilles Blanc - gbl...@linagora.com Ingénieur expert informatique embarquée Représentant du personnel - Secrétaire du CE Groupe LINAGORA - http://www.linagora.com Tél.: +33(0)1 46 96 63 39 - Fax : +33(0)1 46 96 63 64 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel