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

Not working with TLS 1.2 Download Source .Net 4.0 #25

Closed
bluebits88 opened this issue Jul 14, 2017 · 3 comments
Closed

Not working with TLS 1.2 Download Source .Net 4.0 #25

bluebits88 opened this issue Jul 14, 2017 · 3 comments

Comments

@bluebits88
Copy link

Hello,

your Package seems currently not be able to connect to a HTTPS TLS 1.2 Source when used in .Net Framework 4.0.

I had to include the following lines of code to make it work:

   public const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
    public const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;

ServicePointManager.SecurityProtocol = Tls12;

I don't think i can place this code outside of DLL into my main Application, can I?

@ravibpatel
Copy link
Owner

@bluebits88 UI of the AutoUpdater.NET runs on another thread. If ServicePointManager.SecurityProtocol persists across threads it should work. The only way to know is by trying it.

@TechnikEmpire
Copy link

TechnikEmpire commented Jul 30, 2017

ServicePointManager.SecurityProtocol = (ServicePointManager.SecurityProtocol & SecurityProtocolType.Ssl3) | (SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12);

... anywhere in your application should fix this.

@jenokizm
Copy link

I have a website on https letsencrypt and everything works

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

No branches or pull requests

4 participants