Disabling certificate hostname verification [closed]

扶醉桌前 提交于 2019-12-11 23:16:15

问题


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



来源:https://stackoverflow.com/questions/15184349/disabling-certificate-hostname-verification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!