diff --git a/ElectronicObserver/Observer/APIObserver.cs b/ElectronicObserver/Observer/APIObserver.cs index 804eaf7b3..08bfb12f7 100644 --- a/ElectronicObserver/Observer/APIObserver.cs +++ b/ElectronicObserver/Observer/APIObserver.cs @@ -732,7 +732,7 @@ private APIObserver() EnableConnectionPool = false, ForwardToUpstreamGateway = true }; - Proxy.CertificateManager.RootCertificate = new X509Certificate2(); + Proxy.CertificateManager.EnsureRootCertificate(true,false); Proxy.BeforeRequest += ProxyOnBeforeRequest; Proxy.BeforeResponse += ProxyOnBeforeResponse; @@ -765,7 +765,7 @@ public int Start(int portID, Control uiControl) try { - Endpoint = new ExplicitProxyEndPoint(IPAddress.Any, portID, false); + Endpoint = new ExplicitProxyEndPoint(IPAddress.Any, portID, true); Proxy.AddEndPoint(Endpoint); Proxy.UpStreamHttpProxy = c switch