Interface ICertificateProvider
Implement ICertificateProvider2 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.
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 |