Egon wrote:
> Hi everybody
> 
> Several days ago I wrote a message about testing a new driver. I wrote my new 
> driver over piv driver. Now, I am testing it... My driver uses a 
> pkcs15-emulator.
> 

The piv driver was never designed to work with pkcs15-init. as the card is
not file based, and in normal use, OpenSC would only use the card, not
initialize one. So you may have to add a lot of code if you need pkcs15-init.


But for testing with beta PIV cards, the piv-tool.c was written to
generate a key on the card (and retrieve the public key at the same time).
OpenSSL with engine can be used to get a request signed, and the piv-tool
  can then load the cert on to the card.


> When I use pkcs15-init -C , I get the following message:
> 
> [pkcs15-init] apdu.c:184:sc_apdu_log: 
> Outgoing APDU data [   14 bytes] =====================================
> 00 A4 04 00 09 A0 00 00 03 08 00 00 10 00 ..............
> ======================================================================
> [pkcs15-init] reader-pcsc.c:173:pcsc_internal_transmit: called
> [pkcs15-init] apdu.c:184:sc_apdu_log: 
> Incoming APDU data [    2 bytes] =====================================
> 6A 82 j. ( File not found )
> [...] Card does not support the requested operation
> 
> If I have an emulation layer, this call will not fail...  I want to know if I 
> am in right way or I must to change anything.
> 
> Thank you everybody.
> 
> 
> 
> 
>       
> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
> 
> 

-- 

  Douglas E. Engert  <deeng...@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to