Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore SSL issues #50

Open
Hades32 opened this issue Dec 17, 2014 · 1 comment
Open

Ignore SSL issues #50

Hades32 opened this issue Dec 17, 2014 · 1 comment

Comments

@Hades32
Copy link

Hades32 commented Dec 17, 2014

When using Windows.Web.Http.HttpClient you can do stuff like this:

        private HttpClient CreateClient()
        {
            var filter = new HttpBaseProtocolFilter();
            if (_env.IgnoreSslProblems)
            {
                filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.IncompleteChain);
                filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Expired);
                filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.Untrusted);
                filter.IgnorableServerCertificateErrors.Add(ChainValidationResult.InvalidName);
            }
            return new HttpClient(filter);
        }

Is it possible to do this with PortableRest? Or would we have to create a (less portable) fork?

@robertmclaws
Copy link
Collaborator

I will look into it. It seems really useful for testing purposes, so if we have to create platform-specific libraries to be able to make it happen, then that might be the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants