diff --git a/src/Titanium.Web.Proxy/ExplicitClientHandler.cs b/src/Titanium.Web.Proxy/ExplicitClientHandler.cs index 9ef639a5a..a4fd23498 100644 --- a/src/Titanium.Web.Proxy/ExplicitClientHandler.cs +++ b/src/Titanium.Web.Proxy/ExplicitClientHandler.cs @@ -182,7 +182,7 @@ await clientStreamWriter.WriteResponseAsync(connectArgs.HttpClient.Response, X509Certificate2 certificate = null; try { - sslStream = new SslStream(clientStream, true); + sslStream = new SslStream(clientStream, false); string certName = HttpHelper.GetWildCardDomainName(connectHostname); certificate = endPoint.GenericCertificate ?? diff --git a/src/Titanium.Web.Proxy/TransparentClientHandler.cs b/src/Titanium.Web.Proxy/TransparentClientHandler.cs index b5e429be8..c929c567d 100644 --- a/src/Titanium.Web.Proxy/TransparentClientHandler.cs +++ b/src/Titanium.Web.Proxy/TransparentClientHandler.cs @@ -67,7 +67,7 @@ private async Task handleClient(TransparentProxyEndPoint endPoint, TcpClientConn X509Certificate2 certificate = null; try { - sslStream = new SslStream(clientStream, true); + sslStream = new SslStream(clientStream, false); string certName = HttpHelper.GetWildCardDomainName(httpsHostName); certificate = endPoint.GenericCertificate ??