Skip to Content
avatar image
Former Member

Error retrieving Certificate from Default JKS in PI 7.1 WAS JAVA

Hi everyone.

I'm trying to retrieve a Certificate from the Default JKS of a WAS Java (PI 7.1).

Java code follows:

+InitialContext ctx = new InitialContext(ctxProp); +

Object o = (Object) ctx.lookup("keystore");

KeyStoreManager manager = (KeyStoreManager) o;

KeyStore keyStore = manager.getKeyStore("DEFAULT");

Certificate ret = ks.getCertificate("ProofCert");

While executing, following Exception arise:

incompatible with interface

It seems that I need additional libraries:

I have imported that:





Has anyone some Idea of what is happening? What addiotional libraries I need?

Java version is 5.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 06, 2009 at 12:21 PM


    Did you find a solution for your problem? I'am facing the same problem for the moment.

    Thanks in advance


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      You need to import the following security libraries:



      and all the libraries under "security.class".