Class DefaultCertificateProvider
[DEPRECATED] Use the BCCertMaker instead. This is the default Fiddler certificate provider.
Inheritance
Inherited Members
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public class DefaultCertificateProvider : ICertificateProvider3, ICertificateProvider2, ICertificateProvider, ICertificateProviderInfo
Constructors
DefaultCertificateProvider()
Declaration
public DefaultCertificateProvider()
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
ClearCertificateCache()
Interface method: Clear the in-memory caches and Windows certificate stores
Declaration
public bool ClearCertificateCache()
Returns
System.Boolean
|
Implements
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
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
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
Remarks
This method uses a Reader lock when checking the cache and a Writer lock when updating the cache.
GetConfigurationString()
Declaration
public string GetConfigurationString()
Returns
System.String
|
Implements
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
rootCertIsTrusted(out Boolean, out Boolean)
Declaration
public bool rootCertIsTrusted(out bool bUserTrusted, out bool bMachineTrusted)
Parameters
System.Boolean
bUserTrusted
|
System.Boolean
bMachineTrusted
|
Returns
System.Boolean
|
Implements
TrustRootCertificate()
Declaration
public bool TrustRootCertificate()
Returns
System.Boolean
|