summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/ProxyService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lib/Services/ProxyService.cs')
-rw-r--r--src/main.lib/Services/ProxyService.cs6
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)
{