Problem with insecure certificates

Started by Salvatore L., November 07, 2018, 01:05:47 PM

Previous topic - Next topic

Salvatore L.

I'm building a webserice client, but during the invocation of doRequest () I get the following error.

WS-DEBUG (IO ERROR)
Class: TCPClientConnection :: createSecureConnection ()
Msg: Server name does not match certificate
Code: 0
WS-DEBUG END

It's a problem with the remote server certificate, but I can not in any way change the certificate, but I have to accept it as it is, even though I know it's not safe.

I also have to accept self signed certificates.

How can I do?