提供自己的根证书的HTTPS连接? [英] Provide own root-certificate for HTTPS-connection?
问题描述
目前我的应用程序通过HTTP连接到一个(特殊)Web服务器通过GET / POST和HttpClient的检索有一些数据。
currently my app connects to a (special) webserver via HTTP to retrieve some data from there via GET/POST and HttpClient.
现在我打算切换到HTTPS。我的问题:我与通信的网页使用了CACERT根证书这是不是适用于所有Android设备上,因此,对于大多数用户来说,这连接将会失败
Now I plan to switch over to HTTPS. My problem: the webpage I'm communicating with uses a CACert root certificate which is not available on all Android devices, so for most users this connection will fail.
在CACERT HTTP提供他们的根证书://www.cacert。组织/ index.php文件ID = 3及?郎= EN 。有没有使用这些证书对我的HTTPS连接的可能?我不希望静默安装整个系统,对我来说这将是足以提供它只是为我的特殊的HttpClient连接。
CACert provides their root certificates at http://www.cacert.org/index.php?id=3&lang=en . Is there a possibility to use these certificates for my HTTPS connection? I don't expect to install it silently for the whole system, for me it would be enough to provide it just for my special HttpClient connection.
谢谢!
推荐答案
OK,发现这里包括code例如一个解决方案:的 http://developer.android.com/training/articles/security-ssl.html
OK, found a solution including code example here: http://developer.android.com/training/articles/security-ssl.html
这篇关于提供自己的根证书的HTTPS连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!