ClassDefaultCertificateProvider
[DEPRECATED] Use the BCCertMaker instead. This is the default Fiddler certificate provider.
Definition
Namespace:Fiddler
Assembly:FiddlerCore.dll
Syntax:
public class DefaultCertificateProvider : ICertificateProvider3, ICertificateProvider2, ICertificateProvider, ICertificateProviderInfo
Inheritance: objectDefaultCertificateProvider
Implements:
Inherited Members
Constructors
DefaultCertificateProvider()
Creates a new instance of the default Fiddler certificate provider.
Declaration
[Obsolete("This provider is deprecated. Please use the BCCertMaker provider instead.")]
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
sHost
The target hostname
oCert
The certificate to cache
Returns
Implements
ClearCertificateCache()
Interface method: Clear the in-memory caches and Windows certificate stores
ClearCertificateCache(bool)
Interface method: Clear the in-memory caches and Windows certificate stores
CreateRootCertificate()
Use MakeCert to generate a unique self-signed certificate
Declaration
public bool CreateRootCertificate()
Returns
TRUE if the Root certificate was generated successfully
Implements
GetCertificateForHost(string)
Returns an Interception certificate for the specified hostname
Declaration
public X509Certificate2 GetCertificateForHost(string sHostname)
Parameters
sHostname
Hostname for the target certificate
Returns
An Interception Certificate, or NULL
Implements
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
The certificate provider and Fidder Root CA configuration information
Implements
GetRootCertificate()
Get the root certificate from cache or storage, only IF IT ALREADY EXISTS.
Declaration
public X509Certificate2 GetRootCertificate()
Returns
Implements
TrustRootCertificate()
Copies the Root certificate authority into the Current User's Root store.
Declaration
public bool TrustRootCertificate()
Returns
True if the certificate was trusted successfully
Implements
TrustRootCertificateMachine()
Not applicable. Calls TrustRootCertificate().
rootCertIsTrusted(out bool, out bool)
Checks if the Fiddler Root CA is trusted
Declaration
public bool rootCertIsTrusted(out bool bUserTrusted, out bool bMachineTrusted)
Parameters
bUserTrusted
Output parameter set to True if Fiddler Root CA is present in the user certificate store
bMachineTrusted
Output parameter set to True if Fiddler Root CA is present in the machine certificate store
Returns
True if the Fiddler Root CA is present in either the user or machine certificate store
Implements