Please see my reply below
----------
What is history but a fable agreed upon?
- Anonymous
>-----Original Message-----
>From: [EMAIL PROTECTED]
>
>Firstly if its even possible to extract a certificate from a gemplus enterprise
>card or not and
Yes. You can use the PKCS#11 functions to do this.
If you are using GemSAFE SDK(in 'C') from Gemplus, you can do the following
CK_BYTE Buffer[4096];
CK_CHAR szKeyId[64] = "Key";
CK_CHAR szLabel[] = "My ID";
CK_BBOOL bTrue = TRUE;
CK_OBJECT_CLASS cert_object_class = CKO_CERTIFICATE;
CK_CERTIFICATE_TYPE certType = CKC_X_509;
CK_ATTRIBUTE CertTemplate[] = {
{ CKA_CLASS, &cert_object_class, sizeof(CK_OBJECT_CLASS) },
{ CKA_TOKEN, &bTrue, sizeof(CK_BBOOL) },
{ CKA_CERTIFICATE_TYPE, &certType, sizeof(certType)},
{ CKA_ID, szKeyId, sizeof(szKeyId)-1 },
{ CKA_LABEL, szLabel, sizeof(szLabel)-1 },
{ CKA_VALUE, Buffer, sizeof(Buffer) },
{ CKA_SUBJECT, "(no subject)", 12 },
};
and find the object which matches your attributes.
>secondly if there are any plugins or applet available for this purpose
>We have tried samples from opencard tutorial but it doesnot do
>anything after
>..waiting for the card ...no matter what u do
>I also need to know if we can use GemSAFE applet for that,
>for that i need links in the folllowing regards
>What is the difference between GemSAFE SDK and applet
>What language does it support...coz i got the impression that
>its in VB whereas. i need it in java
As of now, you can develop only in 'C' using GemSAFE SDK. But there is a PKCS#11
bridge for Java, which you can get it from http://www.alphaworks.ibm.com. "I have
tried it, and it works like a charm". Sorry Jon Barber<[EMAIL PROTECTED]>, for using
your lines ;->
When using this bridge, you can do the following
int[] attrtypes = {PKCS11Object.CLASS,
PKCS11Object.TOKEN,
PKCS11Object.CERTIFICATE_TYPE,
PKCS11Object.LABEL};
Object[] attrvalues = {PKCS11Object.CERTIFICATE, // Class = Certificate
Boolean.TRUE, // Token = True
PKCS11Object.X_509, // Certificate Type = X.509
new String("My ID") }; // Label = "My ID"
You can add the attributes as per your requirement. Once you are done with adding the
arrtibutes, find the object which match your given attributes.
>From where can i download it?
As mentioned above, http://www.alphaworks.ibm.com
>What functionalities it provides
>Any detailed samples and tutorials, if available
It has a couple of demo programs, and its API docs(HTML) which I guess would be enuf
if you know a bit of PKCS#11. But if you have the GemSAFE SDK Programming Guide(For
PKCS#11), that would solve almost all of your problems.
I had written a few programs using the bridge, and if you require please let me know.
I will try to send it to you.
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.