justcoding121 / titanium-web-proxy

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

Fix for #769: Wildcard bug on second-level domain #920

Closed fahlisaputra closed 2 years ago

fahlisaputra commented 2 years ago

When openning second-level domain like ".ac.id, .co.id, .vn.ua, etc" it will show message "Couldn't authenticate host". Issue #769

Doneness:

andrewfblake commented 2 years ago

ah amazing, we're getting the same issue here with the wildcard certificate not authenticing - looking forward to this ticket being merged in! thank you!

justcoding121 commented 2 years ago

@honfika Do you agree with this change?

justcoding121 commented 2 years ago

I modified the logic a little bit.

justcoding121 commented 2 years ago

I don’t think there is a perfect solution to this. We can add an proxy flag option to disable wild card Certificates altogether in future.

andrewfblake commented 2 years ago

Good morning, Sensational, thank you! I forked and added the original fix into a local build yesterday to do a little testing and it was working great. Agree with your change too. Yeah, watching the logs, there were still some other resources from the site (like third party adverts, and some google domains etc) that were failing with a 'couldn't authenticate host' but as you say, not sure there is a perfect solution to this and the flag seems like a good feature in the future. Thanks again, really appreciate your help and amazing project.

fahlisaputra commented 2 years ago

Thanks!