验证SSL认证Java / Android
|
我的Android应用程序正在与受SSL证书保护的服务器通信。下面是该代码。
final HttpPost httppost = new HttpPost(\"https://www.myurl.com\");
final List<NameValuePair> postlist = Utils.HttpGetToHttpPost(Arguments);
httppost.setEntity(new UrlEncodedFormEntity(postlist));
final HttpResponse response = httpclient.execute(httppost);
现在我的问题是如何防止MITM攻击。如何确保即时通讯与myurl.com对话,而不与其他网址对话。
没有找到相关结果
已邀请:
2 个回复
街茬
版萍层分
请参阅《 JSSE参考指南》以使用Java SSL连接进行详细自定义。