This is a migrated thread and some comments may be shown as answers.

Firefox 36.0 breaks Fiddler HTTPS decryption

11 Answers 2193 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
a
Top achievements
Rank 1
a asked on 28 Oct 2015, 03:07 AM

There seems to be a problem with Firefox version 36.0 onwards with the Fiddler HTTPS decryption option.  The instructions at http://www.telerik.com/blogs/configuring-firefox-for-fiddler used to work for adding the Fiddler root certificate so that Firefox will trust the certificates that Fiddler issues.  This is also the only way to trust Fiddler for HSTS (HTTP Strict Transport Security) sites because Firefox doesn't allow adding regular "exceptions" for those sites.

After updating Firefox, I found that the Fiddler root CA no longer works to connect to the HTTPS websites.  Firefox gives a "ssl_error_bad_cert_domain" error.  An example of what this looks like is:

www.google.com uses an invalid security certificate. The certificate is only valid for *.google.com (Error code: ssl_error_bad_cert_domain)

 

So this appears to be failing to match the wildcard domain (*.google.com) to the website (www.google.com) and rejecting the certificate as a result.

I tried downgrading back to different Firefox versions, and found that 35.0.1 is the last one that seems to work properly for the Fiddler HTTPS decryption, with 36.0 breaking this functionality.

I first reported this issue on Mozilla support: https://support.mozilla.org/en-US/questions/1090724

 

Is this a known bug / break in compatibility?  Has anyone reported this issue yet and is there a known workaround?

11 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 28 Oct 2015, 05:09 PM
Hi, a--

Thanks for the clear bug report, which clearly demonstrates the problem.

The problem here is that Firefox 36+ apparently dropped support for wildcards (*.example.com) in the SubjectCN parameter, requiring that wildcards only appear in the SubjectAltNames field of the certificate.

The default Fiddler Certificate Provider (makecert) cannot generate certificates with SubjectAltNames, leading to this problem (which isn't present in IE or Chrome).

There are two simple workarounds for this; pick one:

Best Choice: Click Tools > Fiddler Options > HTTPS. Click "Certificates Generated By: Fiddler.DefaultCertificateProvider." In the box that appears, change the dropdown to "CertEnroll." CertEnroll generates more "modern" certificates containing SubjectAltNames and other features that improve performance. After you save this change, you will probably need to untick the "Decrypt HTTPS traffic" checkbox, click "Remove Interception Certificates" (accepting all prompts), then restart Fiddler and recheck the "Decrypt HTTPS traffic" checkbox (accepting all prompts). This will ensure you end up using the new certificate generator and none of the old cached certificates are used.

Ok Choice: Click Tools > Fiddler Options > HTTPS. Click "Certificates Generated By: Fiddler.DefaultCertificateProvider." In the box that appears, untick the Use Wildcards box. This will disable MakeCert's use of wildcards in certificates.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Maxime
Top achievements
Rank 1
answered on 30 Oct 2015, 09:17 AM

I ​have used firefox 41 with fiddler4 for a while now, and HTTPS decryption broke just this morning, right after fiddler's auto update (v4.6.1.2). HTTPS decryption ​broke with other browsers also (tested with IE)​, so it has nothing to do with firefox in my case, especially since CertEnroll ​was already selected in ​my configuration.

What worked for me though is your 2nd workaround: unticking the "Use Wildcards" box.
0
Eric Lawrence
Telerik team
answered on 30 Oct 2015, 06:18 PM
Hello, Maxime--

I'd be very interested to learn more about your configuration, including, specifically what error exactly you see in the browser(s) in question, and what, if any, messages appear in Fiddler's Log tab.

I use Fiddler without errors with CertEnroll and Wildcards enabled with Chrome, Firefox, Internet Explorer, and Microsoft Edge.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Maxime
Top achievements
Rank 1
answered on 30 Oct 2015, 07:19 PM

The error displayed in chrome is (trying to access https://www.wikipedia.org/) :

NET::ERR_CERT_AUTHORITY_INVALID
Subject: *.wikipedia.org
Issuer: DO_NOT_TRUST_FiddlerRoot
Expires on: 28 oct. 2020
Current date: 30 oct. 2015
PEM encoded chain: -----BEGIN CERTIFICATE-----
MIIDUzCCArygAwIBAgIQEvat4lP1RZ9A+JsIvq1HWzANBgkqhkiG9w0BAQsFADBn
MSswKQYDVQQLDCJDcmVhdGVkIGJ5IGh0dHA6Ly93d3cuZmlkZGxlcjIuY29t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Direct failed: System.IO.IOException Échec de l'authentification, car le site distant a fermé le flux de transport. for pipe (CN=*.wikipedia.org, O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com)

When I disable wildcard certificates and restart fiddler, it works in all browsers (i.e. the root certificate is installed). The error is present on all HTTPS sites, not just the sites implementing HSTS.

0
Eric Lawrence
Telerik team
answered on 30 Oct 2015, 08:57 PM
Hi, Maxime--

The problem here is not actually related to wildcarding, but instead relates to the fact that the trust chain to the root certificate is broken. You can resolve this problem (using CertEnroll with wildcarding enabled) by resetting your certificates.

Regards,
Eric Lawrence
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Maxime
Top achievements
Rank 1
answered on 30 Oct 2015, 10:32 PM

Worked like a charm, thanks.

I remember having uninstalled / regenerated / reinstalled ​fiddler's root cert manually (in mmc.exe and firefox cert store) this morning, after the first time I notice​d the error, with no effect though... not sure why, especially ​since firefox uses its own store, ​so ​fiddler's "Remove Interception Certificates" button should have no effect on it and the cert reinstallation process is the same I did before.

Well, I must have missed something!

0
jon
Top achievements
Rank 1
answered on 02 Jun 2016, 06:13 PM
I'm on Firefox 46 and neither of your recommendations work unfortunately.
0
Tsviatko Yovtchev
Telerik team
answered on 07 Jun 2016, 05:21 PM
Hello jon,

What is the error you are getting? Does it affect just Firefox? How did this start happening? Did you update Fiddler or did you update Firefox? Which version of Fiddler are you using?

Regards,
Tsviatko Yovtchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gustavo
Top achievements
Rank 1
answered on 05 Aug 2016, 07:04 AM
I am also having problems with firefox (currently version 47). IE 11 and Chrome 51 work without problems. I am using Telerik Fiddler Web Debugger (v4.6.2.30081) and tried reseting the certificates/unticking wildcard as suggested above. Unfortunately, Firefox still gives me the "Your connection is not secure" error.
0
Eddy
Top achievements
Rank 1
answered on 19 Aug 2016, 01:31 PM
I had the same issue until I connected the two comments: firefox having its own CERT store PLUS Cert Authority Chain broken.  Turns out the simple solution (I'm on Firefox 48.0.1) is to download the FiddlerRoot CERT via http://127.0.0.1:8888 within Firefox and install that for Firefox. After that, everything worked like a charm even for sites with HSTS.
0
David
Top achievements
Rank 1
answered on 27 Jul 2017, 04:21 PM

This was a brute force approach I used with FF 54.

 

Remove Firefox Completely
Uninstall FF via control panel
Delete all firefox data.  (This was the easiest way to get rid of old certificates)
click the windows button
in 'Search programs and files' enter: %APPDATA%
a window explorer window opens to something like: C:\Users\<username>\AppData\Roaming
browse to Mozilla and delete the firefox folder.

Refresh Fiddler Certificates
Open Fiddler and go to Tools->Options->HTTPS
Unclick Decrypt HTTPS traffic
Click Actions->Remove Interception Certificates
Once they're removed, restart Fiddler
Return to Tools->Options->HTTPS
Re select Decrypt HTTPS Traffic (accept all prompts)
Click Actions->Export Root Certificate to Desktop

Reinstall Firefox
https://www.mozilla.org/en-US/firefox/
Goto the options drawer in upper right
Select Options->Advanced->Certificates
Uncheck Query OCSP 
Select View Certificates->Authorities
Import the Certificate you exported from fiddler above
Restart Firefox
goto https://google.com and confirm it gets tracked by Fiddler.

Tags
Fiddler Classic
Asked by
a
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Maxime
Top achievements
Rank 1
jon
Top achievements
Rank 1
Tsviatko Yovtchev
Telerik team
Gustavo
Top achievements
Rank 1
Eddy
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or