List Info

Thread: find key information when creating the certificate in card driver




find key information when creating the certificate in card driver
country flaguser name
United States
2007-06-27 01:32:06
Hi all,
I am trying to develop a external OpenSC card driver
and PKCS#15 initialization libary to make our card to
work with OpenSC pkcs#11 module. I am designing the
smart card such that each key is mapped to certificate
in particular path. 
I am currently implementing the functions required for
loading of key and certificate data to the card.
While creating the certificate, I am not able to find
key for which this certificate is created. I need this
info to store the certificate in particular path.

Is there any way to find the key information
corresponding to certificate created from pkcs#15
initialization routines or card driver functions. I am
emulating pkcs#15 structures using pkcs15 emulator.

Regards,
Kamal.


       
____________________________________________________________
________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your
pocket: mail, news, photos & more. 
http://mobile
.yahoo.com/go?refer=1GNXIC
_______________________________________________
opensc-devel mailing list
opensc-devellists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc
-devel

Re: find key information when creating the certificate in card driver
country flaguser name
United States
2007-06-27 14:34:04

kamal krishna wrote:
> Hi all,
> I am trying to develop a external OpenSC card driver
> and PKCS#15 initialization libary to make our card to
> work with OpenSC pkcs#11 module. I am designing the
> smart card such that each key is mapped to certificate
> in particular path. 
> I am currently implementing the functions required for
> loading of key and certificate data to the card.
> While creating the certificate, I am not able to find
> key for which this certificate is created. I need this
> info to store the certificate in particular path.
> 
> Is there any way to find the key information
> corresponding to certificate created from pkcs#15
> initialization routines or card driver functions. I am
> emulating pkcs#15 structures using pkcs15 emulator.

In the emulation routines, sc_pkcs15_cert_info.id,
sc_pkcs15_pubkey_info.id and sc_pkcs15_prkey.info.id
are used to bind the corresponding cert, pub key, and prv
keys.

Look at pkcs11/framework-pkcs15.c 
pkcs15_bind_related_objects
to see how the related objects are tied together for
pkcs11.

When you call the sc_pkcs15emu routines, you pass in the id
and maybe a path if the object has a related file on the
card.
So you have to know what path to pass.





> 
> Regards,
> Kamal.
> 
> 
>        
>
____________________________________________________________
________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in
your pocket: mail, news, photos & more. 
> http://mobile
.yahoo.com/go?refer=1GNXIC
> _______________________________________________
> opensc-devel mailing list
> opensc-devellists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc
-devel
> 
> 

-- 

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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )