parse-community / Parse-SDK-dotNET

Parse SDK for .NET, Xamarin, Unity.
http://parseplatform.org
Apache License 2.0
322 stars 260 forks source link

My Winform app can not work with self-signed SSL #351

Closed anhhtz closed 3 years ago

anhhtz commented 3 years ago

Hello,

I deployed a Parse-Server on Docker in our comany network. Use nginx as proxy for self-signed certificate. The fake domain name is our-company-name.com. The endpoint api is https://our-company.com/parse forward to IP 192.168.1.222:1337/parse.

The Winform App can not save object if use fake domain with self-signed SSL. But save object success if use via IP address.

I tried to disable SSL validattion following:

System.Net.ServicePointManager.ServerCertificateValidationCallback +=
delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                        System.Security.Cryptography.X509Certificates.X509Chain chain,
                        System.Net.Security.SslPolicyErrors sslPolicyErrors)
    {
        return true; // **** Always accept
    };

Now I can not find any others way. Hope some help.

Thanks alot !

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.