android webview with client certificate

前端 未结 8 2069
情歌与酒
情歌与酒 2020-11-29 04:16

I tried for days to use a web view with a client certificate embedded in the application, but it seems to me that the android sdk does not provide any way to do it, is there

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 04:54

    In API 21 (Android Lollipop) and higher you can override the WebViewClient.onReceivedClientCertRequest(WebView view, ClientCertRequest request). In the method, use your key manager for getting the private key and certificate chain and call request.proceed().

提交回复
热议问题