Skip to content

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

Closed
@anhhtz

Description

@anhhtz

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions