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.

 View Only
Expand all | Collapse all

How to enable SSL handshake debugging for IS

webMethods Community Member

webMethods Community MemberThu May 03, 2007 02:06 PM

  • 1.  How to enable SSL handshake debugging for IS

    Posted Wed October 18, 2006 12:52 AM

    It is often helpful to turn on detailed SSL handshake debugging in Integration Server when troubleshooting HTTPS connection issues related to X509 certificates.

    Setting the JVM parameter -Djavax.net.debug=all will not work and using packet capture tools such as Ethreal or Packetyzer are helpful only if you are enough of a network geek to read the output of those tools.

    Tim Bond tipped me off to these IS server settings that enable the low-level SSL handshake debugging output. This output will be sent to stderr, so it is necessary to start IS from the command line to view this or to pipe stderr to
    a file.

    For outbound SSL debug, set

    watt.ssl.iaik.debug=true

    For inbound SSL debug, set

    watt.net.ssl.debug=true

    The output will look something like the following when the partner’s certificate is not yet trusted by IS:

    ssl_debug(4): Sending server_hello handshake message.
    ssl_debug(4): Selecting CipherSuite: SSL_RSA_WITH_RC4_128_MD5
    ssl_debug(4): Selecting CompressionMethod: NULL
    ssl_debug(4): Sending certificate handshake message with server certificate...
    ssl_debug(4): Sending certificate_request handshake message...
    ssl_debug(4): Sending server_hello_done handshake message...
    ssl_debug(4): Received certificate handshake message with client certificate.
    ssl_debug(4): Client sent a 1024 bit RSA certificate, chain has 1 elements.
    ssl_debug(4): Received client_key_exchange handshake message.
    ssl_debug(4): Received certificate_verify handshake message.
    ssl_debug(4): ChainVerifier: No trusted certificate found, rejected.
    ssl_debug(4): Sending alert: Alert Fatal: bad certificate
    ssl_debug(4): Shutting down SSL layer...
    ssl_debug(4): SSLException while handshaking: Client certificate rejected by ChainVerifier.

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


  • 2.  RE: How to enable SSL handshake debugging for IS

    Posted Wed October 18, 2006 04:08 PM


  • 3.  RE: How to enable SSL handshake debugging for IS

    Posted Tue November 14, 2006 04:28 PM

    This was very good advise, and we were very happy to find it, as we are investigating SSL issue and would require detailed SSL handshake debug information.
    We have tried to activate the SSL debugger as advised here, but haven’t been able to get any output with it. Could someone please help here?

    We have added these two lines to server.cnf.
    watt.ssl.iaik.debug=true
    watt.net.ssl.debug=true

    And to get the stderr, we have added >> $MYLOG 2>&1 to server.sh at the end of line below.
    ${JAVA_RUN} -DWM_HOME=${WM_HOME} -Djavax.net.debug=all -classpath ${CLASSPATH} ${IS_PROXY_MAIN} ${IS_DIR}/bin/ini.cnf $ ${PREPENDCLASSES_SWITCH} ${PREPENDCLASSE
    S} ${APPENDCLASSES_SWITCH} ${APPENDCLASSES} ${ENV_CLASSPATH_SWITCH} ${SAVED_CP}: $* >> $MYLOG 2>&1

    However, there is nothing coming for ssl to the log file given in MYLOG. In fact, there’s only two errors (about /usr/lib/dld.sl) coming to mylog when ever IS is started, nothing else.
    Even grepping for ssl_debug in doesn’t find anything in any file in any folder.

    Could someone please comment if there is another way we could try to get the debug information? Or can you see what we are doing wrong?

    Any comments are most appreciated.


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


  • 4.  RE: How to enable SSL handshake debugging for IS

    Posted Mon December 04, 2006 03:41 PM

    It turned out that we could not get the SSL debug information, because this feature was introduced in IS version 6.5.

    So this might be worth noticing, in case someone has similar issues with SSL debugger.


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


  • 5.  RE: How to enable SSL handshake debugging for IS

    Posted Thu May 03, 2007 02:35 AM

    Hi mcarlson,

    We are using wM 6.5, and did turn on the SSL debug as your suggestion; however, we could not be able to see the output as you shown from server log.

    Can you please advise where we would need to look for the output?

    Your help is very much appreciated.

    Thanks,
    AYCHEN


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


  • 6.  RE: How to enable SSL handshake debugging for IS

    Posted Thu May 03, 2007 02:06 PM

    Did you follow solaukka’s instructions above and start IS from the command line?

    Mark


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


  • 7.  RE: How to enable SSL handshake debugging for IS

    Posted Fri May 04, 2007 01:02 AM

    Hi Mark,

    We did adding this code to the server.sh, and restarted IS from the command line; however, I could not be able to locate where the MYLOG created.

    Any suggestion please.

    Thanks,
    AYCHEN


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


  • 8.  RE: How to enable SSL handshake debugging for IS

    Posted Fri May 04, 2007 03:26 AM

    You would need to define an environment variable called $MYLOG or just replace it in the server.sh with a hardcoded filename such as “ssldebug.log”. You might need to get some assistance from your Unix sysadmin.

    Mark


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


  • 9.  RE: How to enable SSL handshake debugging for IS

    Posted Tue May 08, 2007 02:32 AM

    Hi Mark,

    It works. I can see the ssl log now.

    Thanks,
    AYCHEN


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


  • 10.  RE: How to enable SSL handshake debugging for IS

    Posted Tue August 11, 2009 01:32 PM

    The watt.ssl.iaik.debug=true parameter is quite useful.
    :confused:
    Do you know if there is any possibility to create a log (textfile) when the IS is started as a Windows service and not from command line?


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


  • 11.  RE: How to enable SSL handshake debugging for IS

    Posted Tue May 25, 2010 06:12 PM

    Not sure if anybody could help!

    1. I created our certs and ca certs (all in der format)
    2. Placed partners certs and ca certs in trusted floder (all in der format)
    3. Configured wMAdmin - > Security tab settings
    4. Then created a HTTPS 443 port and set this as primary port
    5. Restarted IS

    After this when I do http://tech.forums.softwareag.com:443 from IE, it didnt work, I thought it will??

    Also from openssl, I gave ‘openssl s_client -connect localhost:443’, but it errored out
    depth=1 /O=VeriSign Trust Network/OU=VeriSign, Inc./OU=VeriSign International Se
    rver CA - Class 3/OU=Verisign is a global provider of domain name registry services and internet infrastructure - Verisign Incorp.by Ref. LIABILITY LTD.(c)97 Ver
    iSign verify error:num=20:unable to get local issuer certificate verify return:024524:error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac:.\ssl\s3_pkt.c:1060:SSL alert number 2024524:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:.\ssl\s23_li b.c:188:


    I dont know about ssl stuff much. But has anyone faced similar issue? Please help

    Sue


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


  • 12.  RE: How to enable SSL handshake debugging for IS

    Posted Wed May 26, 2010 09:51 AM

    Nobody have faced this issue??? I cant believe this!

    wMUsers forum used to be one-stop shop for webMethods!:rolleyes:


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


  • 13.  RE: How to enable SSL handshake debugging for IS

    Posted Thu May 27, 2010 12:13 AM

    The certificate “O=Verisign Trust Network, OU=VeriSign, Inc., OU=VeriSign International Server CA - Class 3, OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign” is valid from Thursday, April 17, 1997 to Wednesday, January 7, 2004.

    [url]https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&id=S:SO7094[/url]


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