Alexander Reyes
Alexander Reyes
Let me se what i can do.
Is this iOS only?
Well, i am facing this issue too so, i have to fix it :)
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
Because it doesn’t use PublicKey at all.
As i said, use Android to get server certificate public key, and once you have it, configure modernhttpclient with it for both platforms.