Called by servers to authenticate the server and optionally the client in a client-server connection using the specified certificate as an asynchronous operation.
Returns System.Threading.Tasks.Task
The task object representing the asynchronous operation.
This method authenticates using System.Security.Authentication.SslProtocols.Default. The certificate revocation list is not checked during authentication. The client is not required to provide a certificate for authentication.
If the authentication fails, you receive a System.Security.Authentication.AuthenticationException, and this System.Net.Security.SslStream is no longer useable. You should close this object and remove all references to it so that it can be collected by the garbage collector.