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, 5 insertions, 1 deletions
diff --git a/src/main.lib/Services/ProxyService.cs b/src/main.lib/Services/ProxyService.cs
index 4079261..bf7e73d 100644
--- a/src/main.lib/Services/ProxyService.cs
+++ b/src/main.lib/Services/ProxyService.cs
@@ -31,12 +31,16 @@ namespace PKISharp.WACS.Services
/// Get prepared HttpClient with correct system proxy settings
/// </summary>
/// <returns></returns>
- public HttpClient GetHttpClient()
+ public HttpClient GetHttpClient(bool checkSsl = true)
{
var httpClientHandler = new HttpClientHandler()
{
Proxy = GetWebProxy()
};
+ if (!checkSsl)
+ {
+ httpClientHandler.ServerCertificateCustomValidationCallback = (a, b, c, d) => true;
+ }
if (UseSystemProxy)
{
httpClientHandler.DefaultProxyCredentials = CredentialCache.DefaultCredentials;