'Xamarin.Forms android WebView blank for no valid SSL certificate (develop environment)

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:

ClientCertRequestHandler is unknow and don't know the assembly to reference

Also, I know that is not the solution, but I implemented a custom renderer (https://docs.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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source