summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/ProxyService.cs
diff options
context:
space:
mode:
authorWouter Tinus <win.acme.simple@gmail.com>2019-11-09 08:34:28 +0100
committerWouter Tinus <win.acme.simple@gmail.com>2019-11-09 08:34:28 +0100
commit14bf0d8596df0cf02f1cdee499b5097c669efcb6 (patch)
tree4f4c8a6e0ee88ba2f8c674d1658c2c09bf0112c2 /src/main.lib/Services/ProxyService.cs
parentedf967d7bfa0697e86fde77b5809b665961a5fc3 (diff)
downloadletsencrypt-win-simple-14bf0d8596df0cf02f1cdee499b5097c669efcb6.zip
letsencrypt-win-simple-14bf0d8596df0cf02f1cdee499b5097c669efcb6.tar.gz
letsencrypt-win-simple-14bf0d8596df0cf02f1cdee499b5097c669efcb6.tar.bz2
fix #1262 and #1255
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;