summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Services/ProxyService.cs
diff options
context:
space:
mode:
authorWouter Tinus <win.acme.simple@gmail.com>2020-02-21 06:34:43 +0100
committerWouter Tinus <win.acme.simple@gmail.com>2020-02-21 06:34:43 +0100
commit12321b9bd25d797207be00262b927f39c76619a3 (patch)
tree0ae9b30501e109a1f99de9c74bab8830fcc0ab52 /src/main.lib/Services/ProxyService.cs
parentc01480e3b9040ca1480a65e19403def05be51ab6 (diff)
downloadletsencrypt-win-simple-12321b9bd25d797207be00262b927f39c76619a3.zip
letsencrypt-win-simple-12321b9bd25d797207be00262b927f39c76619a3.tar.gz
letsencrypt-win-simple-12321b9bd25d797207be00262b927f39c76619a3.tar.bz2
Force TLS 1.2 if OS default settings don't work
Diffstat (limited to 'src/main.lib/Services/ProxyService.cs')
-rw-r--r--src/main.lib/Services/ProxyService.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.lib/Services/ProxyService.cs b/src/main.lib/Services/ProxyService.cs
index 36c0d9f..f2d49a9 100644
--- a/src/main.lib/Services/ProxyService.cs
+++ b/src/main.lib/Services/ProxyService.cs
@@ -10,6 +10,7 @@ namespace PKISharp.WACS.Services
private readonly ILogService _log;
private IWebProxy? _proxy;
private readonly ISettingsService _settings;
+ public SslProtocols SslProtocols { get; set; } = SslProtocols.None;
public ProxyService(ILogService log, ISettingsService settings)
{
@@ -26,12 +27,12 @@ namespace PKISharp.WACS.Services
/// Get prepared HttpClient with correct system proxy settings
/// </summary>
/// <returns></returns>
- public HttpClient GetHttpClient(bool checkSsl = true, SslProtocols sslProtocols = SslProtocols.None)
+ public HttpClient GetHttpClient(bool checkSsl = true)
{
var httpClientHandler = new HttpClientHandler()
{
Proxy = GetWebProxy(),
- SslProtocols = sslProtocols
+ SslProtocols = SslProtocols
};
if (!checkSsl)
{