Alexander Reyes

Results 133 comments of Alexander Reyes
trafficstars

I cannot reproduce this. I can get https://restcountries.eu/data/ala.svg without any issues as soon as i provide the public key in the TLSConfig.

You can get that server public key running this code in Android: ```cs var hostname = "restcountries.eu"; var certificatePinner = new Square.OkHttp3.CertificatePinner.Builder() .Add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") .Build(); var client = new OkHttpClient.Builder()...

It is universal. You get the Public Key using that trick in Android, then configure TLS for both platforms in your shared code. Also, i found where the library fails...

By the way, i have exactly the same use case where i need to share my single HttpClient instance with FFImageLoading but i want to use native handlers to make...

> same issue here. plugin does not support ECDSA, which is a big issue chain.Build(root) fails with ECDSA because it is not supported by Mono: https://github.com/mono/mono/blob/1547af6a278321d5dbc56a63f18b2380c757608e/mcs/class/System/System.Security.Cryptography.X509Certificates/PublicKey.cs#L141

As i said, use Android to get server certificate public key, and once you have it, configure modernhttpclient with it for both platforms.