Hello All,

        I was trying to create a transparent file in a GPK8000 card when I come up 
with this exception error :

         java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot 
set up certs for trusted CAs
        at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
        at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198])

        I used the following codes to set up a certificate..


         fus = (GPKFileUtilityService)sc.getCardService(FileUtilityCardService.class, 
true);

            // 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);
            fus.provideCredentials(ef_3F01, bag);

            // Set up the files we will be using on the card.
            rootFile = new CardFile(fus);
            dfFile   = new CardFile(rootFile, df_0200);
            efFile   = new CardFile(dfFile, ef_0201);

        And the following codes to create a transparent file:


            fus.createTransparentFile(ef_0201, 100, null);


        Can anybody help me?


Regards,

Harley


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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