Cannot send the test request / SSL Certificate Error


#1

Trying to initiate a MuleSoft AnyPoint studio Web Service running locally on my machine by issuing a GET in Katalon via a REST Object to my exposed endpoint:

https://localhost:8778/app

Katalon returns error: "Cannot send the test request
Reason: Host name ‘localhost’ does not match the certificate subject provided by the peer.

Error details:

javax.net.ssl.SSLPeerUnverifiedException: Host name ‘localhost’ does not match the certificate subject provided by the peer (CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:465 at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at com.kms.katalon.core.webservice.common.RestfulClient.response(RestfulClient.java:202)
at com.kms.katalon.core.webservice.common.RestfulClient.sendRequest(RestfulClient.java:135)
at com.kms.katalon.core.webservice.common.RestfulClient.send(RestfulClient.java:75)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:152)
at com.kms.katalon.composer.webservice.parts.RestServicePart$6.run(RestServicePart.java:187)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Note that I am able to connect to the Web Service fine using SoapUI and Postman.

Also, I do have my JKS added to Project > Settings > Network.


#2

Hi @ASUMichael,
Which version of Katalon are you using?


#3

7.0.6 Build 1 Thanks @huynguyen


#4

i do have same problem with Katalon_Studio_Windows_64-7.0.6 .
i already enabled Bypass Certificate Validation in Project settings -> Network.

when i try to downgrade to Katalon_Studio_Windows_64-6.3.3, the same project will running well.


#5

I have the same problem with Katalon version 7.0.6


#6

Hi @ASUMichael, @fransiskamayalestari, @amit.mohabir,
We will address this issue in tomorrow update.
Regards.


#7

That is great news @huynguyen. Thanks for your very prompt replies and fix!


#8

@huynguyen I downloaded the latest version and my request to localhost works now! Thanks for your prompt fix.


#9

image

Me too…thanks for your hard work @huynguyen