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
Post a Comment