On 1/12/2012 9:52 PM, Scott Thomas wrote:
>         Bonjour All Users,
>
>         I have configured opensc with openssl and found this page very 
> helpful : http://www.opensc-project.org/engine_pkcs11/wiki/QuickStart
>
>         with following config :
>
>         openssl_conf            = openssl_def
>         [openssl_def]
>         engines = engine_section
>         [engine_section]
>         pkcs11 = pkcs11_section
>         [pkcs11_section]
>         engine_id = pkcs11
>         dynamic_path =
>           /usr/lib/engines/engine_pkcs11.so
>         MODULE_PATH = /usr/lib/opensc-pkcs11.so
>         init = 0
>
>         and
>
>         openssl req -config openssl.conf -engine pkcs11 -new -key id_45 
> -keyform engine -out req.pem -text -x509 -subj "/CN=Andreas Jellinghaus"
>
>         It is working fine for me - But the issue is that my application 
> requires 2 smart cards . This configuration only deals with 1 smart card and 
> if multiple cards are attached then it will
>         interact with the 1st card - how can i modify this to access the 
> other card attached on my machine ?

The same engine could support more then one card by providing the slot.
The -key could slot_nnnnnnn-id_45 where you would have to determine the slot 
nnnnnnn in some way.

(I have not tried an OpenSSL application using 2 cards at the same time.)



>
>         Regards
>         Scott Thomas
>
>
>
> _______________________________________________
> 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