c# - Difference between AuthenticateAsClient and AuthenticateAsServer -
what difference between sslstream.authenticateasclient , sslstream.authenticateasserver methods?
when should use what?
checked many examples. can't understand should used client , should used server.
authenticateasserver called server process. both overloads method (and async sibling) take x509certificate object, server authentication certificate.
authenticateasclient called client process. both overloads method (and async sibling) take string, hostname use policy matching on server's authentication certificate.
Comments
Post a Comment