Closed luciusinfabula closed 2 years ago
Can you try one of the options here https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/http-stack?tabs=windows to see if some of them helps?
Alternative is to ignore the certificate validation altogether, but that is of course not ideal:
httpClientHandler.ServerCertificateCustomValidationCallback +=
(sender, cert, chain, sslPolicyErrors) => true;
The HttpClient Stack and SSL/TLS Implementation selectors determine the HttpClient and SSL/TLS implementation that will be used by your Xamarin.Android apps.
Hi Martin, thanks for your kindly reply.
I tried successfuly both changing HttpClient handling in advanced Droid property configuration and using explicit AndroidClientHandler and they work perfect.
At the end I decided to implement the second solution using Platform-specific C# directive like following click here .
And now I can handle in Droid project https sites configured with Let's Encrypt certificates too.
Many thanks again for your help. Luc
Current behavior
Dears, I'm using this library FeedReader to create a Rss Reader. The library is based on HttpClient library. Trying to retrieve data from a site protected by a Let's Encrypt TLS certificate causes following exception:
In WPF/UWP project all goes ok while in DROID project this behaviour happens only for Let's Encrypt sites.
I tried 5 sites with Let's Encrypt and all return the same exception, while 5 ones with different TLS certificates no exception is raised.
List of Let's Encrypt sites:
List of sites with different certificates:
Luc
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
No response
Environment
No response
NuGet package version(s)
No response
Affected platforms
Android
IDE
Visual Studio 2019
IDE version
16.11.16
Relevant plugins
No response
Anything else we need to know?
No response