SharpBlock
SharpBlock copied to clipboard
LoadProcessFormWeb not work on invalid or expired SSL certificate
[!] SharpBlock failed with error The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at SharpBlock.Program.LoadProcessFromWeb(String url)
at SharpBlock.Program.LoadProcessData(String path)
at SharpBlock.Program.ReplaceExecutable(IntPtr hProcess, IntPtr hThread, String path)
at SharpBlock.Program.Main(String[] args)
i use below code Solve the problem
ServicePointManager ServerCertificateValidationCallback + = (sender, certificate chain, sslPolicyErrors) = > true;
want to add an option to ignore certificate errors.
Happy to take a PR if you can add it as a program option to ignore TLS errors