Hello everyone,
I am trying to use a certificate that I have in the Windows Certificate Store with Fiddler.
In fact I am running the Fiddler in the server that is using the certificate in IIS.
I load the certificate to avoid fiddler certificate with the following code in Customize rules:
var certName: String = new String("servername")var oCert: X509Certificate2 = CertMaker.FindCert(certName)
var result = false
MessageBox.Show(oCert)
result = CertMaker.StoreCert("servername", oCert);
MessageBox.Show(result)
In 4 line I show the certificate and it is correct.
In line 6 I verify that the certificate is loaded (true).
But if I try to access with the browser, fiddler show it is capturing an decrypting but with fiddler certificate (DO_NOT_TRUST_FiddlerRoot)
Can you help me to use the correct certificate installed in windows store?
I am trying to follow something like:
The CertEnroll Certificate Generator (telerik.com)
I have colleagues using with pfx file:
CertMaker.StoreCert("example.com", "C:\\temp\\cert.pfx", "TopSecretPassword");
but I want to use the other method:
CertMaker.StoreCert("example.com", certMyCert);
Any idea?
Thanks in advanced.