c# - Accept any certificate for SSL -


i have small tcpclient app connect server using ssl (sslstream class)

my question is, how accept ssl certification when connecting?

thanks,

public static bool remotecertificatevalidationcallback(object sender,      x509certificate certificate, x509chain chain, sslpolicyerrors errors)  {     return true; } 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -