webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

How to configure a trusted certificate for the java clientusing wm java API

  • 1.  How to configure a trusted certificate for the java clientusing wm java API

    Posted Wed October 05, 2005 04:47 PM

    Hello,

    I’ve written a java client (using the wm6.1 API …Context ) for connecting to the IntegrationServer over HTTPS.
    I have two questions/problems:

    1. How can I add a trusted certificate for the java client, something like trustStore for java or CA directory for IS?

    2. When we are trying to access IS via Apache Proxy we get the exception:
      “com.wm.util.LocalizedCertificateException: [ISC.0009.9001] Certificate chain broken: not linked properly”.
      What could be the cause?
      A java client snapshot:

      try{

                 context = new com.wm.app.b2b.client.Context(); 
      
      context.setSecure(true); 
      
      if(httpsProxy)       context.setSecureProxy(proxyHost,proxyUser,proxyPassword);  
      
      
      
      if(certificate) 
      
      { 
      
      String[] certs = {Cert,CertCA,CertRoot}; 
      
      context.setSSLCertificates(PrivKey,certs); 
      
      context.connect(server,null,null); 
      
      } 
      
      else 
      
      { 
      
      
      
      context.connect(server,user,password); 
      
      } 
      
      
      
      } 
      

    Thanks,
    Lavinia


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods