Disabling certificate hostname verification [close

2019-09-07 05:43发布

问题:

I just started today with worklight and try to connect a RESTFul API. The server (which I don't own) I would like to reach use ssl with a self-signed certificate. I imported the certificate in my cacert following the procedure defined in the worklight documentation.

Now, I have the following error when I try the RESTFul API:

"errors": [ "Runtime: Http request failed: javax.net.ssl.SSLException:
    hostname in certificate didn't match:

In many http java implementation there is a way to disable the hostname verification but don't find it how to do it when using worklight.

Any tip?

As this question has been close because it is off topic, could you tell me where I post questions and get support on IBM Worklight? Many Thanks

回答1:

See this article regardin self signed certificates.

http://pic.dhe.ibm.com/infocenter/wrklight/v5r0m5/index.jsp?topic=%2Fcom.ibm.worklight.help.doc%2Fadmin%2Ft_ibm_worklight_server_and_self-signed_certificates.html