Le 05/10/2011 09:16, Benjamin ALLEMAND a écrit :
> Hi,
>
>     According to the dump that you presented, the '--auth-id' argument of 
> your key generation command has to be 'C1'.
>     I propose you to activate the logs (in 'app default' section of 
> etc/opensc.conf set 'debug = 8' and some valid path for 'debug_file') and 
> send here the logs.
>
>
> Ok, attached file is debug log for this command execution

Operation fails at the 'generate-key' APDU, with error code 'No precise 
diagnosis'.
I have no problems with the similar Gemalto card (same ATR, same applications, 
slightly different initialization).

Unusual thing with this card is that 'Generic' profile contains the allocated 
key slots with the limited usage.
(First 4 slot are only for 'authentication'.)

I propose you to try to generate key 2048 bit with the following command:
# pkcs15-init -G rsa2048 --bind_to_aid E828BD080FD25047656E65726963 --label 
"Generate 2048" --auth-id C1 --key-usage digitalSignature,dataEncipherment

Here 'double key usage' defined to pass by the key slots with the limited usage.


>     You can also send here the output of the 'list_sdos' command from 
> opensc-explorer.
>     This command will show some details on the pre-allocated SDOs of private 
> RSA keys:
>     # opensc-explorer
>     OpenSC [3F00]> cd aid:E828BD080FD25047656E65726963
>     OpenSC [E828BD080FD25047656E65726963]> list_sdos 0x20 <here follows the 
> needed output>
>

> And here is the result for listing sdos 0x20 :
>
>     opensc-explorer.exe
>     OpenSC Explorer version 0.13.0-svn
>     Using reader with a card: SpringCard CSB6 Family Contact 0
>     Serial: 984000001079955F
>     OpenSC [3F00]> cd aid:E828BD080FD25047656E65726963
>     OpenSC [E828BD080FD25047656E65726963]> list_sdos 0x20
>     Found SDO class 20, reference 9
>             contact ACLs:   8B:13:13:00
>             size:   00:80
>     Found SDO class 20, reference A
>             contact ACLs:   8B:13:13:00
>             size:   00:80
>     OpenSC [E828BD080FD25047656E65726963]>
>
>
>
>     For the future, if you need to use minidriver of OpenSC, be ready to use 
> another MSI.
>     The MSI that you are currently using is built on the experimental branch 
> where support of secure-messaging, multi-application features has been tested.
>     It do not include the minidriver of OpenSC.  This branch is not more 
> supported.
>
>     I propose to use instead the last nightly MSI built on 'secure-messaging' 
> github branch of OpenSC.
>     This branch is destinated to be merged into the OpenSC master branch in 
> the nearest (I hope) future.
>     http://www.opensc-project.org/downloads/nightly/viktor/win32/
>     The nightly built MSI includes the minidriver.
>
>
> Thanks, I just installed it, is there any option to modify in order to run it 
> with my ias/ecc card ?
>
> Thanks a lot !

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to