Hello, Mohammed.
I would like to ask you about the gemplus GPK8000 card services (a.k.a.
card drivers).
I have downloaded them (v.0.2) and tried to run your example (I have
changed it a little).

(See attached file: Tutorial.java)

Here is the output of the program:

Waiting for card...

Card detected

com.gemplus.opencard.service.gpk.file.GPKFileSystemService@1f92d7d3
com.gemplus.opencard.service.gpk.file.GPKFileUtilityService@26fad7d3
com.gemplus.opencard.service.gpk.signature.GPKKeyGenerationService@4bf6d7d3
com.gemplus.opencard.service.gpk.signature.GPKSignatureService@4496d7d3
com.gemplus.opencard.service.gpk.signature.GPKKeyManagementService@54a2d7d3
com.gemplus.opencard.service.gpk.GPKException: Status code: 6B90
        at 
com.gemplus.opencard.service.gpk.GPKResponseAPDU.validate(GPKResponseAPDU.java:104)
        at 
com.gemplus.opencard.service.gpk.access.GPKCardAccessor.selectFile(GPKCardAccessor.java,
 Compiled Code)
        at 
com.gemplus.opencard.service.gpk.file.GPKFileAccessService.exists(GPKFileAccessService.java:164)
        at 
com.gemplus.opencard.service.gpk.file.GPKFileUtilityService.dir(GPKFileUtilityService.java,
 Compiled Code)
        at Tutorial.<init>(Tutorial.java, Compiled Code)
        at Tutorial.main(Tutorial.java:169)

Any idea what this error code is? I have found in the Reference Manual the
code 6B00 which means illegal address. Some errors like 6Cnn can span a
range, but 6B doesn't. Any idea what is going on?
Thanks in advance,
Douglas






"Mohammed SADIQ" <[EMAIL PROTECTED]>
13/10/2000 09:16



To:   Douglas Atique@BAND
cc:   "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, Mauricio
      Fujisawa@BAND, Marcelo Gulfier/BR/ABNAMRO/NL@BAND
Subject:  RE: [OCF] Certificate requests


>I would like to confirm: I must download the card drivers from Gemplus
>site, right? Or does OCF 1.2 come with them? I have downloaded
>them anyway.

I think they are available at both OCF & Gemplus Developers site. But make
sure that you get the latest.

Warm Regards

----------
Don't anthropomorphize computers -- they hate it.
- Anonymous


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 13, 2000 6:36 PM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
>[EMAIL PROTECTED]
>Subject: RE: [OCF] Certificate requests
>
>
>
>
>Thanks, Mohammed.
>You have been very helpful. And your example will help me a lot.
>I would like to confirm: I must download the card drivers from Gemplus
>site, right? Or does OCF 1.2 come with them? I have downloaded
>them anyway.
>Now that you have clarified some crucial points I am ready to
>go through
>the GPK manuals again.
>Regards,
>Douglas
>
>
>
>
>
>
>[EMAIL PROTECTED]
>12/10/2000 03:24
>
>
>
>To:   Douglas Atique/BR/ABNAMRO/NL@ABNAMRO
>cc:   [EMAIL PROTECTED]
>Subject:  RE: [OCF] Certificate requests
>
>My comments below...
>
>----------
>Trust, but verify.
>- Anonymous
>
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, October 11, 2000 11:24 PM
>>To: [EMAIL PROTECTED]
>>Cc: [EMAIL PROTECTED]
>>Subject: RE: [OCF] Certificate requests
>>
>>
>>
>>
>>Thanks for your answer, Mohammed. I am doing my tests with
>GPK 4000 and GPK
>>8000 cards. GPK 4000 has 6 manuals full of instructions, but
>this looks
>>much like assembly programming.
>
>>Do I have to assemble APDUs to send to the card myself
>>or are there any ready calls in OCF that I can use to generate
>>keys, get public key out of the card, store certificates
>inside the card
>>and sign data.
>
>OCF provides you API for
>(1)generation of key pairs
>(2)signing
>(3)store certificates(just store the DER encoded stuff in some
>transparent/binary file)
>(4)fetch public key - I don't know whether OCF provides this a
>one step process. But a simple work around will be reading 'a'
>record(to be precise 2
>records, for N and E) from the PK file.
>
>The attached program generates a key pair, signs some data and
>verifies the signature.
>
>>Also, I am a little confused by the file naming scheme. Are
>>there any well-known file names under which I should store my
>certificate
>>or is it just a matter of conventioning some file for my application?
>
>Its upto the application. There is no restriction as such.
>There is just a 'recommendation' that the DF should be named
>as XY00 and all its EFs should
> be christened as XYab.
>
>>I have read the manuals for GPK and they talk about master
>file, dedicated
>>files and elementary files, and these can be of various types.
>>Could you clarify this some more to me?
>
>The file types are explained very elaborately in the reference
>manuals. Please go thru them, and if you have any specific
>query, please let me know.
>
>
>


Tutorial.java

Reply via email to