In my local PC development environment, I have a dotnetcore 2.2 project running in port 5000 as https and 5001 as http. I need to use https in my develop environment. From my PC I can enter via https://localhost:5000/ without any error (VS install a localhost SSL certificate). Using my PC IP https://192.168.0.2:5000 the browser launch an SSL certificate error (the SSL certificate is for localhost). I'm developing a Xamarin.Forms 4.5.0.396 for Android (9.0API level 28) and iOS, and I'm using standard WebView control.
In Android, when I navigate (webView.Source) to http://192.168.0.2:5001, it works, but when I try https://192.168.0.2:5000, the webView remains in blank. No Exceptions but Navigated event launched. I try several ways like exposed in:
WebView with SSL Client Certificate on Android 4 ICS
public void onReceivedClientCertRequest(WebView view, ClientCertRequestHandler handler, String host_and_port)
ClientCertRequestHandler is unknow and don't know the assembly to reference
- Xamarin Android error in (https, ssl, tls) Setup network_security_config.xml and other things in this question, didn't work for me.
Also, I know that is not the solution, but I implemented a custom renderer (https://learn.microsoft.com/es-es/xamarin/xamarin-forms/app-fundamentals/custom-renderer/hybridwebview) to try to override SSL validation method, but it not works.
Any suggestion?