CertMakerStoreCert Method (String, X509Certificate2) |
Pre-cache a Certificate in the Certificate Maker that should be returned in subsequent calls to FindCert
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static bool StoreCert(
string sHost,
X509Certificate2 oCert
)
Public Shared Function StoreCert (
sHost As String,
oCert As X509Certificate2
) As Boolean
public:
static bool StoreCert(
String^ sHost,
X509Certificate2^ oCert
)
Parameters
- sHost
- Type: SystemString
The hostname for which this certificate should be returned. - oCert
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
The X509Certificate2 with attached Private Key
Return Value
Type:
BooleanTRUE if the Certificate Provider succeeded in pre-caching the certificate. FALSE if Provider doesn't support pre-caching. THROWS if supplied Certificate lacks Private Key.
See Also