Can I store SSL certificate in Android web browser

In the application I'm working on, I have to make an HTTPS message on the web server. I received certificates without trusted errors when I do this directly (without web browsing).

But when I use the android web view to load the https url, I can do

public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {
handler.proceed() ;
}

to continue the connection when I receive an SSL certificate without a reliable error.

My doubt is

1) If I use the above method, will Android Webview actually save the certificate in the keystore?

2) Will the same Webview also be able to use the certificate in the keystore to accept further connections to the same HTTPS server?

3) Can we programmatically put some certificate in the webview key store so that it accepts all connections to the server with HTTPS support?

I am confused by many questions.

Please, help.

+5
source share

All Articles