I have a problem with SSL certificate verification in my Unity game.
I made a simple test code:
ServicePointManager.ServerCertificateValidationCallback += ServerCertificateValidationCallback; private static bool ServerCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; } public void Test() { WebClient w = new WebClient(); string downloadString = w.DownloadString("https://encrypted.google.com/"); }
I implemented this in .NET 4.5 and Unity (Mono), and the problem is that this certificate is correctly verified on .NET, but in Mono I get:
SslPolicyErrors: RemoteCertificateChainErrors ChainStatus: PartialChain RevocationStatusUnknown OfflineRevocation
Why is this happening? Do I have to install something in Mono extra to handle this?
thanks
source share