Connect to local CosmosDB emulator from Xamarin.Forms

185 Views Asked by At

I have a Xamarin app, which use Azure Storage and Azure Cosmos. For now, both storage are emulated from my PC. As well as a Pixel 2 from the Android emulator.

I found that I need to configure the ip as 10.0.2.2, even if I can't find this IP or even network on my PC. Although, it works well with the storage account, I can connect to it.

But when I'm connecting to Cosmos, I get the following exception :

Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
 at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132

I'm not an expert in Android, How can I add a custom certificate?

Or just disable SSL for Cosmos emulator?

0

There are 0 best solutions below