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

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -