【问题标题】:FiddlerCore Https Firefox Certifcate installation and TrustFiddlerCore Https Firefox 证书安装和信任
【发布时间】:2014-08-07 20:59:10
【问题描述】:

我正在玩 Fiddler core ,尝试设置代理并检查 Https 流量。对于 Chrome 和 Internet Explorer fiddler 有很大的支持:

  if (!CertMaker.rootCertExists())
        {
            if (!CertMaker.createRootCert())
                return false;

            if (!CertMaker.trustRootCert())
                return false;
        }

有人知道如何使用 Mozilla 吗?如何在那里安装证书?

【问题讨论】:

    标签: fiddler mozilla fiddlercore


    【解决方案1】:

    Fiddler/FiddlerCore 本身没有任何东西可以做到这一点。您可以从 Firefox 扩展轻松启动该过程(请参阅 Fiddler 安装文件夹中的 overlay.js):

     var certdb = Components.classes["@mozilla.org/security/x509certdb;1"].getService(Components.interfaces.nsIX509CertDB);
     var file = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).
     get("Desk", Components.interfaces.nsIFile);
     file.append("FiddlerRoot.cer");
    
     try {
            alert("On the following screen, tick the first checkbox: 'Trust this CA to identify websites.'");
            certdb.importCertsFromFile(null, file, Components.interfaces.nsIX509Cert.CA_CERT);
     }  catch (e) { alert("Trust function returned:\n\n" + e); }
    

    从 Firefox 外部或绕过所有提示,您需要戳他们的 API;参见例如How to add a trusted Certificate Autority to Firefox with JSS 展示了一种方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-06
      • 1970-01-01
      • 2022-12-23
      • 1970-01-01
      • 1970-01-01
      • 2016-11-29
      • 1970-01-01
      • 2017-03-02
      相关资源
      最近更新 更多