Certificate trust warning issue from WS to server
search cancel

Certificate trust warning issue from WS to server


Article ID: 136158


Updated On:


CA Application Test Service Virtualization


How to accept and continue when certificate warning message appears for HTTPS.  The WebService step tried to send a message to the Server  but the connection was closed after that.

[ 1] %% Invalidated: [Session-1, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384]
[ 1] Thread-119, SEND TLSv1.2 ALERT: fatal, description = certificate_unknown
[ 1] Thread-119, WRITE: TLSv1.2 Alert, length = 2
[ 1] Thread-119, called closeSocket()
[ 1] Thread-119, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[ 1] Thread-119, called close()
[ 1] Thread-119, called closeInternal(true)


All supported DevTest releases.


The call timeout in Web Service Execution step was set to 10ms.. which is by default about 30,000ms

Due to which after invocation we are getting below Exception: org.apache.http.conn.ConnectTimeoutException: Connect to abc.net.com:8080 timed out

It is found that during troubleshooting stage, "Web Service Execution" step invocation these parameters are getting added to clientParams. http.socket.timeout="10" http.connection.timeout="10" And the timeout errors were thrown.


Add this in local.properties file of Workstation machine https.protocols=TLSv1.2,TLSv1.1,TLSv1,SSLv3

Restart workstation.

Also, in the Web Service Execution step, change call timeout to 10,000ms