Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
#82: TLS fix to support Jenkins 2.73.1, contributed by @JeanFrancoeur.
Browse files Browse the repository at this point in the history
  • Loading branch information
zionyx committed Nov 14, 2017
1 parent d2a46f6 commit 3e6565e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions JenkinsTray/BusinessComponents/JenkinsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ private string DownloadString(Credentials credentials, string url, bool cacheabl
JenkinsService.ignoreUntrustedCertificate = ignoreUntrustedCertificate;

var webClient = GetWebClient(credentials);
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
res = webClient.DownloadString(url);

if (logger.IsTraceEnabled)
Expand Down

0 comments on commit 3e6565e

Please sign in to comment.