我有一个服务器与https自签名证书和Android上的客户端应用程序。在客户端,我只是禁用urlConnection.setHostnameVerifier(new AllowAllHostnameVerifier());的证书验证,在这种情况下,连接将是安全的,或者这只是禁用https并通过http进行连接?
发布于 2011-11-17 19:37:21
只要您打开的网址以https://开头,连接就是安全的。但是,您很容易受到Man-in-the-middle attacks攻击,因为有人可以使用任何自签名证书来冒充您的服务器。
https://stackoverflow.com/questions/8166387
复制相似问题