Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadProcessFormWeb not work on invalid or expired SSL certificate #7

Open
Like0x opened this issue Apr 5, 2021 · 1 comment
Open

Comments

@Like0x
Copy link

Like0x commented Apr 5, 2021

[!] 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.

@CCob
Copy link
Owner

CCob commented Apr 10, 2021

Happy to take a PR if you can add it as a program option to ignore TLS errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants