Could you please let me know what you are tyring to do?

----------
What is conservatism? 
Is it not the adherence to the old and tried against the new and untried?
- Abraham Lincoln (1809-1865)


>-----Original Message-----
>From: Mariano Ortu�o S�nchez [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 22, 2000 10:43 PM
>To: [EMAIL PROTECTED]
>Subject: [OCF] Access condition - problem
>
>
>THE PROBLEM:
>I have credential:
>    // Provide credentials for Administrative key :3F00:3F01
>    CredentialBag               bag = new CredentialBag();
>    GPKCredentialStore          store = new GPKCredentialStore();
>    GPKAdministrativeCredential credential = new
>GPKAdministrativeCredential();
>
>    store.storeCredential(0, credential);
>    bag.addCredentialStore(store);
>    fss.provideCredentials(ef_3F01, bag);
>
>    // Provide credentials for Administrative key :3F00:3F02
>    bag = new CredentialBag();
>    store = new GPKCredentialStore();
>    credential = new GPKAdministrativeCredential(SYS_KEY);
>
>    store.storeCredential(0, credential);
>    bag.addCredentialStore(store);
>    fss.provideCredentials(ef_3F02, bag);
>
>I have a DF:
>     byte[]  ac_4000 = {
>       2, 0
>     };
>     boolean extAuth = false;
>     fus.createDF(df_4000, extAuth, ac_4000);
>
>I have a Key File:
>
>     fus.createSecretKeyFile(ef_3F02, 1, null);
>
>     fus.import3DESKey(ef_3F02, SYS_KEY,
>GPKFileInfo.ADMINISTRATION_SECRET_KEY, 1);
>
>And I have a EF (Code File):
>
>     fus.createSecretCodeFile(ef_4007, 1, ac_4007);
>     GPKSecretCodeRef unlockRef = new
>GPKSecretCodeRef(GPKSecretCodeRef.GLOBAL_CODE, (byte)0x00);
>     fus.importSecretCode(ef_4007, code, 0, fus.PLAIN_PRESENTATION, 7,
>unlockRef);
>
>But I obtain the follow error:
>
>com.gemplus.opencard.service.gpk.GPKException: ISO error (69 
>82): Access
>condition not fulfilled:
> Secure messaging required and no key specified in Access Condition.
> Secure messaging required and no temporary administration key
>established.
> at
>com.gemplus.opencard.service.gpk.GPKResponseAPDU.validate(GPKRe
>sponseAPDU.java:104)
>
> at
>com.gemplus.opencard.service.gpk.access.GPKCardAccessor.execute
>Command(GPKCardAccessor.java:367)
>
>Why I obtain error?
>Thanks for your help.
>
>
>
>---
>> 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.




---
> 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.

Reply via email to