Open christopherobin opened 9 years ago
It seems that WebRequest can't properly verify SSL certificates on Android and iOS, might be related to the Mono Version.
WebRequest
Most solutions I've seen online resume at doing the following:
ServicePointManager.ServerCertificateValidationCallback += (o, cert, chain, errors) => true;
Which works but is a terrible solution as it just removes all verifications. So we need to either find a better HTTP client, or manually rewrite the ServerCertificateValidationCallback to implement a proper verification.
ServerCertificateValidationCallback
It seems that
WebRequest
can't properly verify SSL certificates on Android and iOS, might be related to the Mono Version.Most solutions I've seen online resume at doing the following:
Which works but is a terrible solution as it just removes all verifications. So we need to either find a better HTTP client, or manually rewrite the
ServerCertificateValidationCallback
to implement a proper verification.