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

    Posted Fri October 07, 2011 05:05 PM

    Hi guys:

    I’ve a certificate problem, using the code below in my portlet I get a certificate error

    URL url = new URL(hostName + “intranet/TU/sessionvalidator/” + sessionID );

    URLConnection con = url.openConnection();

    com.ibm.jsse2.util.g: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is: java.security.cert.CertPathValidatorException: The certificate issued by CN=SBG Certificate Authority, DC=dpardirectory, DC=com is not trusted; internal cause is: java.security.cert.CertPathValidatorException: Certificate chaining error

    I got the two certificates and sucefully imported into cacerts sucefully:

    keytool -importcert -keystore /var/opt/webMethods/v8/jvm/aix160_64/jre/lib/security/cacerts -trustcacerts -file /sistemas/BPM/keystore/wexcertificate.der -a
    lias webComex

    keytool -importcert -keystore /var/opt/webMethods/v8/jvm/aix160_64/jre/lib/security/cacerts -trustcacerts -file /sistemas/BPM/keystore/wexcertificateCA.der -a
    lias webComex

    Restart IS and MWS but the problem remains.

    Need help.

    Regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Certificate problem

    Posted Mon October 10, 2011 04:11 PM

    Norberto,

    The message you got “chaining error”, means that the client could not build a proper certificate chain from what the server sent you to one of the trust roots in your JVM. It is possible the server is not configured properly even though it may work with some clients. A couple suggestions to resolve:

    • try with browser. If it works with no warnings use the certs it found for proper path

    • try with OpenSSL s_client, this shows the certs the server is sending
      $ openssl s_client -connect host:port -showcerts

    • build a standalone java client and enable debug


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Certificate problem

    Posted Wed October 12, 2011 04:58 PM

    My webMethods application try to connect to the site using https (URLConnection/HttpsURLConnection). The certificates were correctly imported. One of them is self-signed. Two certificates were imported as mentioned above to the truststore located in webMethods/v8/jvm/aix160_64/jre/lib/security/cacerts.

    The application reports an chaining error.

    Are the certificates imported to the correct truststore?


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 4.  RE: Certificate problem

    Posted Wed October 12, 2011 07:11 PM

    I got more info for this problem.

    I execute the url using an IS Api pub.client:http and it works.

    I made a conclusion:

    “Certificates imported to the truststore <SAG_DIR>/jvm/aix160_64/jre/lib/security/cacerts are not being used by MW applications”

    If that is true, where is located the trustore for MWS? (Since it seem is not using the jvm cacerts.)

    best regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 5.  RE: Certificate problem

    Posted Mon October 17, 2011 12:34 PM

    What version of the server are you running? In the current release the cacerts is in the \server\default\config\glue directory.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 6.  RE: Certificate problem

    Posted Mon October 17, 2011 04:13 PM


  • 7.  RE: Certificate problem

    Posted Mon October 17, 2011 05:09 PM

    It should be in the gluetruststore.jks file. Please open a support ticket if you continue to have issues/questions.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 8.  RE: Certificate problem

    Posted Tue October 18, 2011 11:51 AM

    Thanks. I was using the incorrect keystore/truststore, the truststore I mentioned above works for IS, not MWS.

    Regards


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS