Forum Discussion

Deloitte_Consul's avatar
Deloitte_Consul
Contributor
13 years ago

R Getting error SSLPeerUnverifiedException in soapUI 4.5.1.1

Hi All,

we are getting "sslpeerunverifiedexception-peer-not-authenticated" error while executing test script in soapUI 4.5.1.1, please find the error trace route below.

2012-10-31 05:28:41,642 ERROR [WsdlSubmit] Exception in request: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
2012-10-31 05:28:41,642 ERROR [errorlog] javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:446)
at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:499)
at com.eviware.soapui.impl.wsdl.support.http.SoapUISSLSocketFactory.createLayeredSocket(SoapUISSLSocketFactory.java:268)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:200)
at org.apache.http.impl.conn.AbstractPoolEntry.layerProtocol(AbstractPoolEntry.java:277)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.layerProtocol(AbstractPooledConnAdapter.java:142)
at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:758)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:565)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:241)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:350)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:234)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Additional details:
Nightly build we are using: soapUI Pro 4.5.1.1-SNAPSHOT (64 bit), copyright (C) 2007-2012 smartbear.com http://www.soapui.org | http://smartbear.com Build [internal], Build Date 2012/10/31 00:27.

We have defined Proxy server in global preferences for executing test scripts.

Anticipating quick response.

Regards
Deepak Rawat

8 Replies

  • Hi!

    The proxy you are using, does it have an untrusted (self signed) SSL certificate?

    --
    Regards

    Erik
    SmartBear Sweden
  • Hi Erik,

    Confirmed with ITS team, proxy server does not have any SSL certificate.

    Regards
    Deepak Rawat
  • Hi Erik,

    Endpoint that we are trying to access is HTTPS.

    Through browser we can access both Http and Https urls.

    Hope i have answered your question.

    Please let me know if any further details are required.

    Regards
    Deepak Rawat
  • Thanks.

    This is a know issue (SOAPUI-4487) and we'll inform you as soon as we got more information about this.

    Sorry, but can you access the proxy over HTTP as well?
    Could you change the URL to HTTP as a walkaround then?

    --
    Regards

    Erik
    SmartBear Sweden
  • This is a know issue (SOAPUI-4487) and we'll inform you as soon as we got more information about this.

    Is there any progress on this issue?
    soapUI-Pro-x32-4.5.1.1-SNAPSHOT.exe does not work for me.

    Thanks
    Tom
  • I have downloaded soapUI 4.6.2 and still got the SSLPeerUnverifiedExceptions.
    But I have found the solution now:
    For every webservice accessed through https, you need to add the certificate of the server (or the parent certificate of the server's certificate) to your cacerts file.

    If you don't have write access to the cacerts file, you can copy the cacerts file to a writeable location (e.g. X:\_soapui\), add the certificates and change the soapui.bat as follows:
    set JAVA_OPTS=-Djavax.net.ssl.trustStore=X:\_soapui\cacerts -Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\" -splash:soapui-splash.png


    Tom