Hello, Could you write this to a test script and put to SVN so that it would do a full cycle of initialization-testing with RutokenECP, making use of the fact that --reader can accept a reader name (unfortunately this depends on PC/SC position) or card ATR, so that the test could be run on a machine with several different tokens/cards connected?
Ideally it could make use of the regressiontests shellscript framework but a simple RutokenECP-tailored script would also do a good job. I'd run this continuously on a daily basis against an ECP device. Best, Martin On Thu, May 19, 2011 at 12:03, Viktor TARASOV <viktor.tara...@opentrust.com> wrote: > Le 19/05/2011 10:26, Мещеряков Кирилл a écrit : >> Hello, >> >> How are you re-initialize Rutoken ECP? > > Here is my test sequence: > > pkcs15-init -E > pkcs15-init -C --label "OT-RuToken" -P --auth-id 02 --so-pin "87654321" --pin > "12345678" > pkcs15-init --auth-id 02 -S ./some.p12 --format pkcs12 --pin "12345678" > --passphrase "coucou" > pkcs15-tool --list-pins -k -c > pkcs15-crypt -s --key 30afd5be733a3707e5788adbdb6a2cc8f73ed772 -i > ./some-data.bin --pin "12345678" --sha-1 --pkcs1 > > > In the logs the last APDUs are: > > 00000024 APDU: 00 20 00 02 08 31 32 33 34 35 36 37 38 > 00002002 SW: 6F 86 > 00000017 APDU: 80 40 00 00 > 00001549 SW: 90 00 > 00000025 APDU: 00 20 00 02 08 31 32 33 34 35 36 37 38 > 00003523 SW: 90 00 > 00000023 APDU: 00 A4 08 00 08 10 00 10 00 60 02 00 01 > 00002631 SW: 90 00 > 00000022 APDU: 00 22 41 B6 07 81 02 00 01 84 01 01 > 00002375 SW: 90 00 > 00000159 APDU: 10 2A 9E 9A FF 8B B3 C3 ... 70 14 04 00 05 1A 02 03 0E 2B 05 > 06 09 30 21 30 00 FF FF ... FF 01 > 00002148 SW: 69 89 > > >> Best Regards, >> Cyril. > Kind wishes, > Viktor. > > >> >> >> -----Original Message----- >> From: opensc-devel-boun...@lists.opensc-project.org >> [mailto:opensc-devel-boun...@lists.opensc-project.org] On Behalf Of Viktor >> TARASOV >> Sent: Thursday, May 19, 2011 11:57 AM >> To: 'opensc-devel@lists.opensc-project.org'; Alexandre Aufrere >> Subject: [opensc-devel] RuToken-ECP compute signature question >> >> Hi, >> >> everything was working nicely until I have re-initialized RuToken-ECP. >> >> After re-initializing, still, I can import/generate RSA 1024/2048 and GOST >> keys, but any attempt to compute the signature results in mysterious error >> 6989. >> >> The same results are observed with the keys imported/tested by OpenSC on >> Linux and by the native rtPKCS11ECP.dll on Windows. >> >> >> What could be reason, please? >> >> Kind regards, >> Viktor. >> >> _______________________________________________ >> opensc-devel mailing list >> opensc-devel@lists.opensc-project.org >> http://www.opensc-project.org/mailman/listinfo/opensc-devel >> > > > -- > Viktor Tarasov <viktor.tara...@opentrust.com> > > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel