Groovy Modules
  1. Groovy Modules
  2. GMOD-98

disabling cert check doesn't work as SSLHelper init occurs 'too soon'

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: GroovyWS-0.5.0
    • Fix Version/s: None
    • Component/s: GroovyWS
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      I read in another post that it was possible to disable (in 0.5.0?) the CN check by runing the code below.

      But what is happening is that SSLHelper.getLocalWsdlUrl() is being called (thus contacting the SOAP endpoint) as a result of the proxy.initialize() .
      This happens before the condiut can be setup to turn off the CN check.

      The other odd thing is that without the 443 specified in the url one gets the excpetion:
      Caught: java.lang.IllegalArgumentException: port out of range:-1
      at sslclient.run(sslclient.groovy:11)

      The exception is the typical "you don't have a valid certificate or trust chain in a local keystore":
      >
      > javax.net.ssl.SSLHandshakeException:
      > sun.security.validator.ValidatorException: PKIX path building f
      > ailed: sun.security.provider.certpath.SunCertPathBuilderException: unable to
      > find valid certificatio
      > n path to requested target
      > at
      > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
      > at
      > com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
      > at
      > com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
      > at
      > com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
      > at
      > com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:103
      > 5)
      > at
      > com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
      > at
      > com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
      > at
      > com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
      > at
      > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
      > at
      > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:111
      > 2)
      > at
      > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
      > at
      > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
      > at groovyx.net.ws.cxf.SSLHelper.getLocalWsdlUrl(SSLHelper.java:234)
      > at groovyx.net.ws.WSClient.initialize(WSClient.java:104)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Guillaume ALLEON
            Reporter:
            Wayne Keenan
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: