How Can I Access an SSL Connection Through Android?

前端 未结 2 1701
广开言路
广开言路 2020-12-01 04:02

I started following a tutorial that wasn\'t cased around Android and got this:

    System.setProperty(\"javax.net.ssl.trustStore\", \"truststore\");
    Syst         


        
2条回答
  •  误落风尘
    2020-12-01 04:46

    You don't need your own truststore unless the peer is using self-signed certifictes. The JRE ships with a truststore that is used by default, which trusts certificates issued by all the major CAs.

提交回复
热议问题