I have a small TcpClient application to connect to a server using SSL (SSlStream class)
My question is how to accept any ssl certificate when connecting?
Thanks,
public static bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; }
Source: https://habr.com/ru/post/1308350/More articles:how to create a window with black rounded corners in cocoa - objective-cWe ported VB6 code to C # in .net - c #JQuery - intercept links clicked inside iframe - javascriptHow to pass a string containing single and double quotes as an XSLT parameter in PHP? - stringHow to transfer Cppunit tests to GoogleTest? - c ++The app runs on 3GS, but slower on 3G - performanceWhich .Net setting would be most like Django - djangoWhere should I put JavaScript files that should be internationalized in a Django project? - javascriptSQL SERVER SSAS: how to handle a NULL date value in my fact table, so I can handle a time dimension without errors? - nullIs urge cache Django pattern regex? - pythonAll Articles