Forum Discussion

shubhimu's avatar
shubhimu
Contributor
6 years ago

Soapui Maven -Exception in request: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Hi,
I am getting below error in soap ui 5.4 version when running my project through maven.
Although in soap ui its working fine after adding ssl settings.
SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
19:26:28,791 Error [WsdlSubmit] Exception in request: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
19:26:28,791 ERROR [SoapUI] An error occurred [peer not authenticated], see error log for details
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:431)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)

Java version is 1.8.
Anonymous can you please let me know the fix for this.

Thanks,
Himanshu

8 Replies

  • avidCoder's avatar
    avidCoder
    Super Contributor

    Fix to this problem is to add - 

     

    -Djsse.enableSNIExtension=false

    The path -  home/soapui/bin/soapui.bat. 

    • shubhimu's avatar
      shubhimu
      Contributor
      Thanks for the reply..
      ..i still have a doubt here i am running my soapui project from maven so how would changing the bat file will suffice the purpose. Dont we need to add some plugin/dependency in pom.xml for this or may be something we need to pass in maven goal.

      Kindly confirm and correct my understanding.
      • avidCoder's avatar
        avidCoder
        Super Contributor

        Could you please tell me what is your java version and maven version? May be its compatibility issue. And try adding this plugin :-

         

        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration> 
        <arguments>-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true</arguments>
        </configuration> 
        </plugin>