IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.


#TechXchangePresenter
 View Only
  • 1.  HTTPS Context Connnection

    Posted Thu August 20, 2009 07:28 PM

    Hi all,

    I’m creating a Java Client application that connects to a Reverse Invoke HTTPS port.

    I was able to connect to the customer’s URL using both browser and plain Java HttpsURLConnection.
    But when I try to create the connection using webMethods Client API (com.wm.app.b2b.client.Context) I aways get the exception:

    I debugged the code and saw that the wmChainVerifier has no trustedDNs or signers. Is it correct?

    I tried to use the same solution I used for the HttpsURLConnection but had no joy.

    Any suggestion?

    Thanks!


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: HTTPS Context Connnection

    Posted Thu August 20, 2009 07:35 PM

    Juliano,

    This message means the server’s certificate chain is not configured correctly. Integration Server’s client SSL implementation is less tolerant to problems in that area. It could be a missing certificate or extra certificate in the chain.

    The openssl s_client -connect host:port -showcerts command can be helpful to figure out what the issue is.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: HTTPS Context Connnection

    Posted Thu August 20, 2009 07:41 PM

    Hi tbond,

    Thanks for the quick reply…

    I just ran the openssl you sent and got:

    What does this mean?

    Thanks!


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: HTTPS Context Connnection

    Posted Fri August 21, 2009 04:28 PM

    That just tells you that your OpenSSL configuration does not trust the certificate returned by the server. That is normal unless you have the root certificate configured using the -CAfile option.

    What you need to look at is the certificate chain returned from the server. It should show a series of certificates each one in order. It is right after the verify message.


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: HTTPS Context Connnection

    Posted Mon August 24, 2009 09:55 PM

    I got those.

    First is the customer’s certificate then a Verisign certificate.
    The customer’s certificate is a version 3 cert.
    Verisign’s is a Version 1.

    But what’s the catch?


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: HTTPS Context Connnection

    Posted Wed August 26, 2009 06:16 PM

    Version 1 certificates are obsolete but they are still around. Version 1 certs don’t have extensions such as “CA = true”. They can be part of the cert chain along with version 3.

    Each certificate should have an issuer DN which matches the subject DN in the next certificate. The last certificate in the chain has to be verifiable by one of the certificates in your trusted CA list.

    If you continue to have issues please open a SR with Global support.


    #Integration-Server-and-ESB
    #webMethods