justcoding121 / titanium-web-proxy

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

Can not create certificate in 3.1.1341 #815

Closed topfunet closed 3 years ago

topfunet commented 3 years ago

I just upgrade Titanium to 3.1.1341, found there is a bug. When i call EnsureRootCertificate, a error come out and says "Could not install certificate as it is null or empty.".

honfika commented 3 years ago

Which target framework, architecture, OS? Can you reproduce it with the sample project? If not, then please provide a code to reproduce the problem.

topfunet commented 3 years ago

Just create a console project target .netcore3.1 or .net5.0, put this line in Main function then run this project you will see error.

new ProxyServer().CertificateManager.EnsureRootCertificate();

OS: Window 10 1909 VS: Visual Studio 2019 (16.8.1) Framework: .NetCore3.1.10 and .Net5.0.0

I hope this helps.

honfika commented 3 years ago

thanks... fixed.. please try the latest package