• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • jQuery
    • Angular
    • React
    • Vue
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DefaultCertificateProvider

[DEPRECATED] Use the BCCertMaker instead. This is the default Fiddler certificate provider.

Inheritance
System.Object
DefaultCertificateProvider
Namespace: Fiddler
Assembly: FiddlerCore.dll

Syntax

public class DefaultCertificateProvider : Object, ICertificateProvider3, ICertificateProvider2, ICertificateProvider, ICertificateProviderInfo

Constructors

DefaultCertificateProvider()

Creates a new instance of the default Fiddler certificate provider.

Declaration
public DefaultCertificateProvider()
Remarks

[DEPRECATED] Use the BCCertMaker instead.

Methods

CacheCertificateForHost(String, X509Certificate2)

Updates the Server Certificate cache under the Writer lock

Declaration
public bool CacheCertificateForHost(string sHost, X509Certificate2 oCert)
Parameters
System.String sHost

The target hostname

System.Security.Cryptography.X509Certificates.X509Certificate2 oCert

The certificate to cache

Returns
System.Boolean

Implements
ICertificateProvider3.CacheCertificateForHost(String, X509Certificate2)

ClearCertificateCache()

Interface method: Clear the in-memory caches and Windows certificate stores

Declaration
public bool ClearCertificateCache()
Returns
System.Boolean

Implements
ICertificateProvider.ClearCertificateCache()

ClearCertificateCache(Boolean)

Interface method: Clear the in-memory caches and Windows certificate stores

Declaration
public bool ClearCertificateCache(bool bRemoveRoot)
Parameters
System.Boolean bRemoveRoot

TRUE to clear the Root Certificate from the cache and Windows stores

Returns
System.Boolean

TRUE if successful

Implements
ICertificateProvider2.ClearCertificateCache(Boolean)

CreateRootCertificate()

Use MakeCert to generate a unique self-signed certificate

Declaration
public bool CreateRootCertificate()
Returns
System.Boolean

TRUE if the Root certificate was generated successfully

Implements
ICertificateProvider.CreateRootCertificate()

GetCertificateForHost(String)

Returns an Interception certificate for the specified hostname

Declaration
public X509Certificate2 GetCertificateForHost(string sHostname)
Parameters
System.String sHostname

Hostname for the target certificate

Returns
System.Security.Cryptography.X509Certificates.X509Certificate2

An Interception Certificate, or NULL

Implements
ICertificateProvider.GetCertificateForHost(String)
Remarks

This method uses a Reader lock when checking the cache and a Writer lock when updating the cache.

GetConfigurationString()

Return a string describing the current configuration of the Certificate Provider. For instance, list the configured key size, hash algorithms, etc.

Declaration
public string GetConfigurationString()
Returns
System.String

The certificate provider and Fidder Root CA configuration information

Implements
ICertificateProviderInfo.GetConfigurationString()

GetRootCertificate()

Get the root certificate from cache or storage, only IF IT ALREADY EXISTS.

Declaration
public X509Certificate2 GetRootCertificate()
Returns
System.Security.Cryptography.X509Certificates.X509Certificate2

Implements
ICertificateProvider.GetRootCertificate()

rootCertIsTrusted(out Boolean, out Boolean)

Checks if the Fiddler Root CA is trusted

Declaration
public bool rootCertIsTrusted(out bool bUserTrusted, out bool bMachineTrusted)
Parameters
System.Boolean bUserTrusted

Output parameter set to True if Fiddler Root CA is present in the user certificate store

System.Boolean bMachineTrusted

Output parameter set to True if Fiddler Root CA is present in the machine certificate store

Returns
System.Boolean

True if the Fiddler Root CA is present in either the user or machine certificate store

Implements
ICertificateProvider.rootCertIsTrusted(out Boolean, out Boolean)

TrustRootCertificate()

Copies the Root certificate authority into the Current User's Root store.

Declaration
public bool TrustRootCertificate()
Returns
System.Boolean

True if the certificate was trusted successfully

Implements
ICertificateProvider.TrustRootCertificate()

TrustRootCertificateMachine()

Not applicable. Calls TrustRootCertificate().

Declaration
public bool TrustRootCertificateMachine()
Returns
System.Boolean

Implements
ICertificateProvider.TrustRootCertificateMachine()
Getting Started
  • Try Now
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.