Unlike windows, an android application can not override certificate validation. To use a self signed certificate it must be installed. See this thread
Resolving SSL Authentication Error on Android for .NET 8 Maui Application Using ca-cert.pem
When running my .NET 8 Maui application on Android, I utilized the ca-cert.pem certification for the database. While it functions correctly on Windows, attempting to use it on Android results in the following error: "MySqlConnector.MySqlException (0x80004005): SSL Authentication Error." This error points to an issue with SSL authentication, leading to a System.Security.Authentication.AuthenticationException, specifically an Interop+AndroidCrypto+SslException.
To address this issue, I am seeking a workaround or solution that allows for successful SSL authentication on Android while using the ca-cert.pem certification for the database in my application.