Class DefaultCertificateProvider
[DEPRECATED] Use the BCCertMaker instead. This is the default Fiddler certificate provider.
Inheritance
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. The target hostname |
System. The certificate to cache |
Returns
System.
|
Implements
ClearCertificateCache()
Interface method: Clear the in-memory caches and Windows certificate stores
Declaration
public bool ClearCertificateCache()
Returns
System.
|
Implements
ClearCertificateCache(Boolean)
Interface method: Clear the in-memory caches and Windows certificate stores
Declaration
public bool ClearCertificateCache(bool bRemoveRoot)
Parameters
System. TRUE to clear the Root Certificate from the cache and Windows stores |
Returns
System. TRUE if successful |
Implements
CreateRootCertificate()
Use MakeCert to generate a unique self-signed certificate
Declaration
public bool CreateRootCertificate()
Returns
System. 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
System. Hostname for the target certificate |
Returns
System. 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
System. 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
System.
|
Implements
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. Output parameter set to True if Fiddler Root CA is present in the user certificate store |
System. Output parameter set to True if Fiddler Root CA is present in the machine certificate store |
Returns
System. True if the Fiddler Root CA is present in either the user or machine certificate store |
Implements
TrustRootCertificate()
Copies the Root certificate authority into the Current User's Root store.
Declaration
public bool TrustRootCertificate()
Returns
System. True if the certificate was trusted successfully |
Implements
TrustRootCertificateMachine()
Not applicable. Calls Trust
Declaration
public bool TrustRootCertificateMachine()
Returns
System.
|