Hello,
Sergio Rdz. Parra wrote:
>
>>> Hi all,
>>> I am looking for information about the process of generating
>>> keys - the private and the public key - in a smartcard.
>
> I only know Gemplus smartcards. And they have one (called GPK, from
> Gemplus Public Key), that has such features. You just have to send
> a command (APDU) to create the PKI support, wich means both public
> and private part of the key.
> I hope it's useful.
>
Also I do not have C code using the MUSCLE (PC/SC) API to provide in
Open Source, but you can download OCF GPK8000 CardServices (in Java)
and have a look especially at a class called "GPKKeyGenerationService"
that I think is doing what you want. This class allows to:
- Generate a pair of RSA keys on card,
and
- Read a public key (that was generated on the card) from the
card.
This code is OpenSource and freely available on the web to use or
modify (see: http://www.gemplus.fr/developers/technologies/opencard/
and "CardServices Downloads").
You should be able to run it both directly using the OCF pure Java
CardTerminal drivers that exist for numerous card readers (see:
http://www.opencard.org/index-devices.shtml) or also to use it
with the MUSCLE PC/SC and one of its driver, using the bridge
between PC/SC and OCF that David has provided on the web site (see:
http://www.linuxnet.com/middleware/middleware.html).
Hope it helps.
Cheers,
Christophe.
= FOOT: A device for finding furniture in the dark. =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************