public static bool rootCertIsTrusted() { CertMaker.EnsureReady(); bool flag; bool flag2; return(CertMaker.oCertProvider.rootCertIsTrusted(out flag, out flag2)); }
public static bool rootCertIsMachineTrusted() { CertMaker.EnsureReady(); bool flag; bool result; CertMaker.oCertProvider.rootCertIsTrusted(out flag, out result); return(result); }
public static bool removeFiddlerGeneratedCerts(bool bRemoveRoot) { CertMaker.EnsureReady(); if (CertMaker.oCertProvider is ICertificateProvider2) { return((CertMaker.oCertProvider as ICertificateProvider2).ClearCertificateCache(bRemoveRoot)); } return(CertMaker.oCertProvider.ClearCertificateCache()); }
public static bool StoreCert(string sHost, X509Certificate2 oCert) { CertMaker.EnsureReady(); ICertificateProvider3 certificateProvider = CertMaker.oCertProvider as ICertificateProvider3; if (certificateProvider == null) { return(false); } if (!oCert.HasPrivateKey) { throw new ArgumentException("The provided certificate MUST have a private key.", "oCert"); } return(certificateProvider.CacheCertificateForHost(sHost, oCert)); }
public static void DoDispose() { if (FiddlerApplication.isClosing && CertMaker.oCertProvider == null) { return; } CertMaker.EnsureReady(); if (FiddlerApplication.Prefs.GetBoolPref("fiddler.CertMaker.CleanupServerCertsOnExit", false)) { CertMaker.removeFiddlerGeneratedCerts(false); } IDisposable disposable = CertMaker.oCertProvider as IDisposable; if (disposable != null) { disposable.Dispose(); } CertMaker.oCertProvider = null; }
public static bool trustRootCert() { CertMaker.EnsureReady(); return(CertMaker.oCertProvider.TrustRootCertificate()); }
public static bool createRootCert() { CertMaker.EnsureReady(); return(CertMaker.oCertProvider.CreateRootCertificate()); }
public static X509Certificate2 FindCert(string sHostname) { CertMaker.EnsureReady(); return(CertMaker.oCertProvider.GetCertificateForHost(sHostname)); }
public static X509Certificate2 GetRootCertificate() { CertMaker.EnsureReady(); return(CertMaker.oCertProvider.GetRootCertificate()); }