justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.93k stars 618 forks source link

Does titanium proxy support TLS 1.3? #926

Open ljh1991125 opened 2 years ago

ljh1991125 commented 2 years ago

Hi.

I am using titanium proxy as local proxy and it works well. But i have some problems with tls. My goal is to support only TLS1.2 and TLS1.3 versions. So I added following code to upgrade the TLS version.

proxyServer.SupportedSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13;

My titanium proxy version is 3.1.1397 and dot net version is 5.0. OS is windows 10 21H2 (19044.1826).

When i connect to tls check site, it says it does not support tls1.3

with_proxy

What's the problem?

If you don't use a proxy, tls1.3 is supported by Chrome without_proxy_edge

This is my internet setting and i checked tls 1.3. And i also added tls 1.3 registry key but tls 1.3 is still not working. internet_setting registry

Thank you for help.

honfika commented 1 year ago

proxyServer.SupportedSslProtocols means the supproted client SSL versions. (However there was a bug in it) TWP requires (/earlier required) the same SSL/TSL version for the servers connection which was used by the client. It seens the browsers are using TLS 1.2 by default.

Added a new property: proxyServer.SupportedServerSslProtocols If it is None, then TWP is using the same method as earlier.. if it is specified, then the specified value will be the supported server SSL versions. You can try 3.2.2-beta+ (when it is released)