• 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

Interface ICertificateProvider

Implement ICertificateProvider5 instead

Namespace: Fiddler
Assembly: FiddlerCore.dll

Syntax

public interface ICertificateProvider

Methods

ClearCertificateCache()

When this method is called, your extension should discard all certificates and clear any certificates that have been added to the user's certificate store.

Declaration
bool ClearCertificateCache()
Returns
System.Boolean

TRUE, if all certificates were removed; FALSE if any certificates were preserved

CreateRootCertificate()

When this method is called, your extension should create a Root certificate.

Declaration
bool CreateRootCertificate()
Returns
System.Boolean

TRUE if the operation was successful

GetCertificateForHost(String)

Return a certificate to secure this traffic. Generally, it's expected that this method WILL create a new certificate if needed.

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

Hostname (e.g. "www.example.com")

Returns
System.Security.Cryptography.X509Certificates.X509Certificate2

An X509Certificate, or null on error

GetRootCertificate()

Return the root certificate to which Host Certificates are chained. Generally, it's expected that this method will NOT create a root certificate.

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

An X509Certificate, or null on error

rootCertIsTrusted(out Boolean, out Boolean)

When this method is called, your extension should check to see if the User or Machine Root certificate store contains your Root certificate. The Machine trust value is only valid for Windows platforms.

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

Set to TRUE if StoreLocation.CurrentUser StoreName.Root has the certificate

System.Boolean bMachineTrusted

Set to TRUE if StoreLocation.LocalMachine StoreName.Root has the certificate

Returns
System.Boolean

TRUE if either bUserTrusted or bMachineTrusted

TrustRootCertificate()

When this method is called, your extension should copy the your Root certificate into the user's (or machines's) Root certificate store.

Declaration
bool TrustRootCertificate()
Returns
System.Boolean

TRUE if the operation was successful

TrustRootCertificateMachine()

When this method is called, your extension should copy the your Root certificate into the or machines's Root certificate store. You should implement this method only for Windows platforms and leave it empty for others.

Declaration
bool TrustRootCertificateMachine()
Returns
System.Boolean

TRUE if the operation was successful

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.