Android WebView handle onReceivedClientCertRequest : <p>I'm developing an Android app using Client Certificate Authentication within WebView. The certificate (cert.pfx) and password are embedded in the application.</p>

<p>When executing Client Certificate Authentication request with ajax call in the WebView, the following function getting called :</p>

<pre><code>@Override
public void onReceivedClientCertRequest(WebView view, final ClientCertRequest request) {}
</code></pre>

<p>As I understend I need to call :</p>

<pre><code>request.proceed(PrivateKey privateKey, X509Certificate[] chain)
</code></pre>

<p>Any idea how to create the PrivateKey and X509Certificate objects from the embedded certificate in order to proceed with the request.
BTW, is this the correct way to implement Client Certificate Authentication on Android app ? if no, please advice.</p>
