diff options
author | Wouter Tinus <win.acme.simple@gmail.com> | 2020-02-20 21:41:00 +0100 |
---|---|---|
committer | Wouter Tinus <win.acme.simple@gmail.com> | 2020-02-20 21:41:00 +0100 |
commit | 26f70caaea1deb12c9e59b94d280b11532e3b796 (patch) | |
tree | 4aab834c3b190bdecb9e2f2510ee9d7c4fef6663 /src/main.lib/Services/ProxyService.cs | |
parent | 39bf891e8b9f61f98d3ec9f6fee546c220c589f2 (diff) | |
download | letsencrypt-win-simple-26f70caaea1deb12c9e59b94d280b11532e3b796.zip letsencrypt-win-simple-26f70caaea1deb12c9e59b94d280b11532e3b796.tar.gz letsencrypt-win-simple-26f70caaea1deb12c9e59b94d280b11532e3b796.tar.bz2 |
additional connection check
Diffstat (limited to 'src/main.lib/Services/ProxyService.cs')
-rw-r--r-- | src/main.lib/Services/ProxyService.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.lib/Services/ProxyService.cs b/src/main.lib/Services/ProxyService.cs index 22e0353..36c0d9f 100644 --- a/src/main.lib/Services/ProxyService.cs +++ b/src/main.lib/Services/ProxyService.cs @@ -1,6 +1,7 @@ using System; using System.Net; using System.Net.Http; +using System.Security.Authentication; namespace PKISharp.WACS.Services { @@ -25,11 +26,12 @@ namespace PKISharp.WACS.Services /// Get prepared HttpClient with correct system proxy settings /// </summary> /// <returns></returns> - public HttpClient GetHttpClient(bool checkSsl = true) + public HttpClient GetHttpClient(bool checkSsl = true, SslProtocols sslProtocols = SslProtocols.None) { var httpClientHandler = new HttpClientHandler() { - Proxy = GetWebProxy() + Proxy = GetWebProxy(), + SslProtocols = sslProtocols }; if (!checkSsl) { |