[英]Android webview and certs on 4.4.2
I am trying to get client Samsung tablet to work with site requiring client devices to have cert. 我试图让客户端三星平板电脑与需要客户端设备的网站合作。 I can get it working on tablets with 5.0+ because webview has onReceivedClientCertRequest. 我可以在5.0+的平板电脑上使用它,因为webview具有onReceivedClientCertRequest。 So I can use that to then load the cert and the key. 所以我可以用它来加载证书和密钥。
But I am having problems on tablets running 4.4.2 because that onReceivedClientCertRequest function is for 5+. 但我在运行4.4.2的平板电脑上遇到问题,因为onReceivedClientCertRequest函数是5+。 When I run on 4.4.2 my concern is that the logger shows: 当我在4.4.2上运行时,我担心的是记录器显示:
'12-23 12:46:07.541 20804-20804/com.example.ssltest I/chromium: [INFO:aw_content_browser_client.cc(349)] Client certificate request from rejected. '12 -23 12:46:07.541 20804-20804 / com.example.ssltest I / chromium:[INFO:aw_content_browser_client.cc(349)]客户证书请求被拒绝。 (Client certificates not supported in WebView)' (WebView不支持客户端证书)'
...is is true that I can't use webview on tablets running<5 if site requires client cert? ...如果网站需要客户端证书,我不能在运行<5的平板电脑上使用webview吗?
If not true, can someone help me on how to do it? 如果不是真的,有人可以帮助我如何做到这一点?
You can install user certificates on a 4.4.2 tablet. 您可以在4.4.2平板电脑上安装用户证书。 This would not be the right solution for production code (for production you would usually have a trusted cert anyways), but is good for testing a site which does not have a trusted cert. 这对于生产代码来说不是正确的解决方案(对于生产,您通常会有一个受信任的证书),但这对于测试没有可信证书的站点是有益的。
To do this: 去做这个:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.