【发布时间】:2013-05-24 15:29:08
【问题描述】:
我正在尝试secure和Tomcat server and an android app之间的通信!
我选择了simple https configuration 并按照本教程:http://www.mkyong.com/tomcat/how-to-configure-tomcat-to-support-ssl-or-https/ 了解如何配置 Tomcat 以支持 SSL 或 Https。
密钥生成成功,可以访问https。当我用它测试我的 android 应用程序时,它无法识别服务器。
经过一番研究,我了解到android仅适用于BKS密钥,并且需要一些代码来根据:How to create a BKS (BouncyCastle) format Java Keystore that contains a client certificate chain和Few questions about SSL on Android完成安全性,但我仍然不明白究竟是什么要遵循的步骤!
请谁能帮我理解这个!!干杯!
【问题讨论】:
-
你的证书是谁颁发的?
-
nobody :S 我用keytool生成了一个...但是没有权限
-
这就是原因。除非将自签名证书安装在设备上,否则 android 将不允许您使用自签名证书进行 https 连接。
-
“它”是什么意思。我该如何安装它??
-
自签名证书。不知道怎么安装。
标签: android security https tomcat7