mage / mage-sdk-unity

MAGE client SDK for Unity
MIT License
2 stars 13 forks source link

SSL Support #29

Open christopherobin opened 9 years ago

christopherobin commented 9 years ago

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:

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.