• 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 ICertificateProvider5

Extension interface for certificate provider implementation, adding methods to read and write the root certificate to a file To override default certificate handling, your class should implement this interface.

Inherited Members
ICertificateProvider4.CertCache
ICertificateProvider3.CacheCertificateForHost(String, X509Certificate2)
ICertificateProvider2.ClearCertificateCache(Boolean)
ICertificateProvider.GetCertificateForHost(String)
ICertificateProvider.GetRootCertificate()
ICertificateProvider.CreateRootCertificate()
ICertificateProvider.TrustRootCertificate()
ICertificateProvider.TrustRootCertificateMachine()
ICertificateProvider.ClearCertificateCache()
ICertificateProvider.rootCertIsTrusted(Boolean, Boolean)
Namespace: Fiddler
Assembly: FiddlerCore.dll

Syntax

public interface ICertificateProvider5 : ICertificateProvider4, ICertificateProvider3, ICertificateProvider2, ICertificateProvider

Methods

ClearCertificateCache(Boolean, out CertificateStoreOperationStatus)

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(bool bClearRoot, out CertificateStoreOperationStatus status)
Parameters
System.Boolean bClearRoot

TRUE if the root certificate should also be cleared

CertificateStoreOperationStatus status

Provides details in case operation is not successful

Returns
System.Boolean

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

ReadRootCertificateAndPrivateKeyFromPkcs12File(String, String, String)

When this method is called, your extension should read the root certificate and its private key from the PKCS#12 file(.pfx | .p12).

Declaration
void ReadRootCertificateAndPrivateKeyFromPkcs12File(string filename, string password, string alias = null)
Parameters
System.String filename

The filename of the PKCS#12 file (.pfx | .p12).

System.String password

The password which is used to protect the private key. Could be null or empty if the private key is not protected.

System.String alias

The alias for the certificate and the private key. Could be null.

ReadRootCertificateAndPrivateKeyFromStream(Stream, String, String)

When this method is called, your extension should read the root certificate and its private key from a stream.

Declaration
void ReadRootCertificateAndPrivateKeyFromStream(Stream stream, string password, string alias = null)
Parameters
System.IO.Stream stream

The stream.

System.String password

The password which is used to protect the private key. Could be null or empty if the private key is not protected.

System.String alias

The alias for the certificate and the private key. Could be null.

WriteRootCertificateAndPrivateKeyToPkcs12File(String, String, String)

When this method is called, your extension should write the root certificate and its private key to a PKCS#12 file(.pfx | .p12).

Declaration
void WriteRootCertificateAndPrivateKeyToPkcs12File(string filename, string password, string alias = null)
Parameters
System.String filename

The filename of the PKCS#12 file (.pfx | .p12).

System.String password

The password which is used to protect the private key. If null or empty, the private key is written unprotected.

System.String alias

The alias for the certificate and the private key. If null, a random alias could be created.

WriteRootCertificateAndPrivateKeyToStream(Stream, String, String)

When this method is called, your extension should write the root certificate and its private key to a stream.

Declaration
void WriteRootCertificateAndPrivateKeyToStream(Stream stream, string password, string alias = null)
Parameters
System.IO.Stream stream

The stream.

System.String password

The password protecting the private key. If null or empty, the private key is written unprotected.

System.String alias

The alias for the certificate and the private key. If null, a random alias could be created.

WriteRootCertificateToDerEncodedFile(String)

When this method is called, your extension should write the root certificate without the private key to a DER encoded file(.cer | .crt | .der).

Declaration
void WriteRootCertificateToDerEncodedFile(string filename)
Parameters
System.String filename

The filename of the DER encoded file (.cer | .crt | .der)

WriteRootCertificateToStream(Stream)

When this method is called, your extension should write the root certificate without the private key to a stream.

Declaration
void WriteRootCertificateToStream(Stream stream)
Parameters
System.IO.Stream stream

The stream.

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.