Skip to content

Conversation

@kaedei
Copy link

@kaedei kaedei commented Apr 20, 2024

The Client class have definitions of ServerCertificateValidationCallback and ServerCertificateValidation(), but never use them in the internal HttpClientHandler.

This PR fix it, user now can use:

var client = new WebDAVClient.Client();
client.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;

to customize their own validation codes when connecting to some self-signed certificate WebDAV servers.

Also, this PR pulls ServerCertificateValidationCallback up to IClient interface.

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

Successfully merging this pull request may close these issues.

1 participant