Skip to content

Ignore SSL issues #50

Description

@Hades32

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions