【问题标题】:Using custom SSL certificates in titanium web proxy在 Titan Web 代理中使用自定义 SSL 证书
【发布时间】:2019-05-28 10:54:42
【问题描述】:

我已将 Titanium Web 代理用于 Windows 窗体应用程序,并在那里拦截 https 流量并对其进行更新。我第一次使用钛根证书,效果很好。
当我尝试使用自定义 ssl 证书时,如下所示

proxyServer.CertificateManager.RootCertificate = new X509Certificate2("default.pfx", 
                    "password",
                    X509KeyStorageFlags.MachineKeySet);

proxyServer.CertificateManager.TrustRootCertificate(true);

但我无法解密 https 流量,它说

"The underlying connection was closed: An unexpected error occurred on a send." innerException says "  
Authentication failed because the remote party has closed the transport stream."

如何使用titanium-web proxy.中的自定义ssl证书解密https流量

【问题讨论】:

    标签: c# titanium-web-proxy


    【解决方案1】:

    当我将自定义证书名称和颁发者名称添加到代理服务器构造函数并且不需要任何上述代码时,问题已得到解决。刚刚通过以下代码解决了问题,并且需要在机器中安装证书

    ProxyServer proxyServer = new ProxyServer("certificate.pfx", "Issuer Name",true,true,true);
    proxyServer.CertificateManager.PfxPassword = "Password";
    

    【讨论】:

    • 如果您命名自定义证书提供者会很棒,我也在研究这个选项以包含自定义证书。
    猜你喜欢
    • 2021-12-20
    • 2015-06-21
    • 2019-07-21
    • 2014-02-19
    • 2020-10-31
    • 2011-09-23
    • 2019-03-26
    • 2023-03-09
    • 1970-01-01
    相关资源
    最近更新 更多