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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Error when creating a WSD for accessing a consumer in SSL

  • 1.  Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 11:16 AM

    Hi,

    I’ve created a WSD to access a SSL consumer without any problem on my PC
    (I’ve beforehand configured the config.ini in adding the 2 lines for the truststore)

    And all works fine : the connectors are well created.

    Now, I’m trying to make exactly the same thing on another Computer.
    (same OS, same WM Designer, same java version and same configurations)

    but I meet this error :

    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)

    Do you know how to solve the problem please ?

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 11:47 AM

    Hi Cedric,

    are you sure that the SSL/TLS settings are identical on both systems?

    Might be that there is a difference in these?

    Additionally check the settings for the JVMs if there have been some SSL/TLS algorithms are disabled in one of them.
    /jre/lib/security

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 11:51 AM

    Hi Holger,

    Thank you for your reply.

    Yes, we’ve used the same .jks file on both systems, and added the same two lines to the config.ini.
    Ok, I’m going to verify theses informations.

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 03:19 PM

    Hi Cedric,

    Which OS you are using? wM Version?
    Have you created separate TrustStore or using the default one?
    Do you have multiple TrustStore defined ?

    Regards,
    Syed Faraz Ahmed


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 03:31 PM

    Hi Syed,

    On each PC, I’ve created a folder on C:, and then I’ve just copied the .jks file in that folder (the same file).
    I’ve used the default .jks file that our partner has sent me.

    The 2 PC are under : Windows 7 Pro SP1
    The 2 Designer are connecting on the same IS :
    Version 9.8.0.0
    Updates IS_9.8_Core_Fix7
    IS_9.8_SPM_Fix1
    Build Number 247
    SSL Strong (128-bit)

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 03:47 PM

    Hi Cedric,

    May i know the reason for putting the .jks file on both PC’s?

    As far as i know just by inserting two properties in configuration file for eclipse will resolve the issue.

    I had set
    -Djavax.net.ssl.trustStore=NONE
    -Djavax.net.ssl.trustStoreType=Windows-Root

    And restarted the designer.

    Regards,
    Syed Faraz Ahmed


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/03/17 05:05 PM

    That’s funny, I’ve added the 2 lines in my ecipse INI :
    javax.net.ssl.trustStore=NONE
    javax.net.ssl.trustStoreType=Windows-Root

    an then I obtain the same error.

    If i replace the lines by these one (initially those which makes all working):

    javax.net.ssl.trustStore=C:\temp\orange_sms\mutuelle_ivry_la_fraternelle.jks
    javax.net.ssl.trustStoreType=JKS

    All works back fine.
    (this is my PC)

    the PC occurs on the PC of one of my colleagues.

    To reply to your question… I was putting the .jks file on both PC’s because, we need to create the WSD on each PC’s.
    We’ve initially tried to put it on the IS file system but did not succeeded (but it is still in testing phase :wink: ).

    Regards

    PS : Holgers I can’t reply to you, because I do not have access to the PC of my colleague (probably until next monday)

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 09:30 AM

    Hi Holger,

    We could make the comparison :

    • our cacerts file was different (but crypted)

    • our java.security was a little different :
      this line was missing :

      Algorithm restrictions for signed JAR files

      jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024

    After taking same files than mine, I still has the error.
    Any idea ?

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 9.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 09:58 AM

    Hi Cedric,

    the content of the cacerts file can be checked with the following command:
    keytool -list -keystore cacerts -storepass changeit

    Keytool is part of the java installation.

    Was the designer restarted after changing the configuration?

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 11:51 AM

    Thank you Holger,
    Yes the Designer has been restarted but the 2nd PC still meet this error.

    Anyway, I will study the error later, for the moment the creating WSD (consumer partner) works on my PC.

    I have created a new keystore on the IS from the .jks file (from the Security\Keystore menu), so I’m going to try to consume the web service now.

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 11.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 02:09 PM

    Hi Cedric,

    the certificate toolkit is no longer neccessary.

    Can you provide the output of the keytool command for your customers jks file?
    you can omit the fingerprints. The alias names are sufficient.

    Is this meant to be a server certificate (for transport) or client certificate (for authorization)?

    If it is used for a server certificate you will only need the CA part of ot which needs to be part of your Truststore file if it is not already part of the jvm´s cacerts file.

    Under the certificates config screen assign the truststore alias to the truststore config.

    Can you share a screenshot of your keystore config as well as the ceriticates page?

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 02:29 PM

    Thank you Holger.
    Before your reply, I have edited my previous post because I’ve found my error :oops:

    Sorry, I’ m not sure to understand what you are asking me

    It’s a certicate (.jks) our partner sent us to consume their webservice. it is just for authorization (IS is the client of this service).

    I’ve made the same test in SoapUI and all works fine : I’ve just set the Keystore .jks path, and the password, and I can run perfectly the service partner.
    So, I just need to make the same thing within the Designer : make work the call of this service.

    When I call the service in the Designer, I obtain an unauthorization error : the same one returned in SoapUI before editing the soapUi SSL preferences.

    To call the SSL service in the Designer, do I need to add a certficate (Security/certificate admin menu) ?
    To test the Connector (of the external service), do I have to set some auth\transport\keyStore alias or auth\message\keyStore alias or anything else ?

    Regards


    #webMethods
    #Integration-Server-and-ESB


  • 13.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 02:41 PM

    Hi Cedric,

    please have a look at the WebService Developers Guide.

    For authentication I would suggest to create a WebService Consumer Alias in IS Admin and assign the certificate there.
    After that configure the Connector in Designer to make use of this WS Consumer alias.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 14.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/04/17 02:52 PM

    Thanks a lot Holger, I did what you recommend, and this works well. :slight_smile:

    I have just noticed, that I do not need anymore the truststore alias, neither the Certificate truststore item (I have delete them, and just leave the Keystore entry).

    Does it look normal for you ?

    Regards


    #Integration-Server-and-ESB
    #webMethods


  • 15.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/05/17 10:37 AM

    Hi Cedric,

    we are currently not using client certificates.

    So I cannot tell much about this.

    If is working this is fine.

    This means that the jks contains all required cerificates or they are existing in the base cacerts file of your JVM.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 16.  RE: Error when creating a WSD for accessing a consumer in SSL

    Posted 01/05/17 01:38 PM

    Hi Holger,

    Ok I undestand, thank you Holger.

    Regards


    #Integration-Server-and-ESB
    #webMethods