Interface ICertificateProvider
Implement ICertificateProvider5 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. 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. 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. Hostname (e.g. "www.example.com") |
Returns
System. 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. 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. The Machine trust value is only valid for Windows platforms.
Declaration
bool rootCertIsTrusted(out bool bUserTrusted, out bool bMachineTrusted)
Parameters
System. Set to TRUE if StoreLocation.CurrentUser StoreName.Root has the certificate |
System. Set to TRUE if StoreLocation.LocalMachine StoreName.Root has the certificate |
Returns
System. 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. TRUE if the operation was successful |
TrustRootCertificateMachine()
When this method is called, your extension should copy the your Root certificate into the or machines's Root certificate store. You should implement this method only for Windows platforms and leave it empty for others.
Declaration
bool TrustRootCertificateMachine()
Returns
System. TRUE if the operation was successful |