Why does dispatch throw “java.net.ConnectException: General SSLEngine …” and “unexpected status” exceptions for a particular URL?

守給你的承諾、 提交于 2019-12-02 05:41:13

If you want to trust all certificates, as in the linked Play example, then try this:

Http.withConfiguration(config => config.setAcceptAnyCertificate(true))(url(address).GET OK as.String)

And to create an Http client that does verify the certificates, I found some sample code here: https://kevinlocke.name/bits/2012/10/03/ssl-certificate-verification-in-dispatch-and-asynchttpclient/.

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