java ssl connection using truststore

我们两清 提交于 2019-12-02 01:20:14

The easiest way is to set a system property when launching the java process: -Djavax.net.ssl.trustStore=...

This is used by the default TrustManager, as described in http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html#X509TrustManager

Alternatively, override the TrustManager as described in the next paragraph in the same document.

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