On Thu, Dec 4, 2008 at 2:08 PM, Fletcher Liverance <[EMAIL PROTECTED]> wrote:
> Hello,

Hello,

> I have a C application that I'm working on adding smartcard support for. My 
> current block is in retrieving the SSL cert from the smartcard to send to the 
> server.
>
> It seems to me the best way to do this is using libpcsclite. I was hoping for 
> something as simple as 'cert = retrieve_cert(smartcard)',  but it looks as if 
> I need to use SCardTransmit and send it a series of APDUs.
>
> My questions are:
> What APDUs do I need to send the smartcard to retrieve the cert?
> Where can I find a list or tutorial outlining APDU calls?
> Are the APDU calls the same across all smartcards or will I need to find the 
> list of APDU calls for the smartcard I'm using? (Aladdin eToken PRO)

You should use the PKCS#11 API instead of PC/SC directly.

Have a look at OpenSC [1]. It looks like the eToken pro is well supported [2].

Bye

[1] http://www.opensc-project.org/opensc/
[2] http://www.opensc-project.org/opensc/wiki/AladdinEtokenPro

-- 
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to