StoreCert with Windows Certificate Store

0 Answers 71 Views
Fiddler Classic
Ignacio
Top achievements
Rank 1
Ignacio asked on 18 Sep 2024, 01:07 PM

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.

 

Eric
Top achievements
Rank 1
commented on 01 Apr 2025, 08:46 PM

CertMaker.FindCert is going to find the certificate that Fiddler generates, not a certificate that happens to be in your store. You'll need to load the original certificate via other means if you want to direct Fiddler to use that certificate via the StoreCert API.

No answers yet. Maybe you can help?

Tags
Fiddler Classic
Asked by
Ignacio
Top achievements
Rank 1
Share this question
or