titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

Custom proxy certificates do not appear to work unless declared by constructor

Open sideup66 opened this issue 5 years ago • 0 comments

Hi folks, I have been working with titanium for some time trying to integrate it into my project which will require a proxy server. I may have run into an interesting bug concerning a custom self-signed certificate.

If I declare my certificate in a constructor such as proxyserver.CertificateManager.LoadCertificate("path-to-cert.pfx","");

when i attempt to use the certificate this way, any connection into the proxy just ends with the proxy closing the connection as unexpectedly closed. However, when i declare my certificate like this:

    ProxyServer proxyServer = new ProxyServer("path-to-cert.pfx","certname",true,false,false);

it works perfectly. I know the three overloads are setting the certificate as user, system, machine. But, am i mssing the cert name in my loadcertificate line? Writing this as im not sure if im missing something or if i discovered a potential bug. thanks!

sideup66 avatar Jan 04 '20 18:01 sideup66