android 实现https通讯,通过读取cer或pfx证书
1. 通过pfx证书实现https请求 准备好xxx.pfx证书(如放在assets目录下)
准好证书的私钥密码
代码实现如下:public static final String CLIENT_KET_PASSWORD="123456";
KeyStore trustStore = KeyStore.getInstance("PKCS12", "BC");
trustS
原创
2016-11-25 16:23:42 ·
8941 阅读 ·
2 评论