Suppress Firefox / Firebug SHA-1 Warning

I use Firebug for web development. Starting with Firefox 37, I see the following annoying message in my console:

This site uses SHA-1 certification; he recommends using certificates with signature algorithms that use hash functions stronger than SHA-1. "

I understand that this is an important message, but it is repeated many times and makes my work almost impossible. In addition, it appears every time my page communicates with other pages, such as Google Analytics and other counters. Therefore, if I renewed my certificate, this message will still appear because there will be SHA-1 on these sites. Therefore, any site with GA causes me problems.

How to disable or filter this message?

+44
firefox sha firebug
Jun 02 '15 at 6:48
source share
4 answers

you can get rid of the message, but you need to change the firebugs code.

Sorry, forgot to mention that you need to convert .xpi to .zip and extract the files first. You can leave the folder in the form in which it was executed, or fix it and convert it to xpi again. You will need to restart Firefox.

  • find the pluggin in your Firefox profile profile and go to this file "\ extensions \ firebug@software.joehewitt.com \ content \ firebug \ console \ errors.js".
  • look for "logScriptError: function (context, object, isWarning)".
  • After the code "var error = new ErrorMessageObj (object.errorMessage, object.sourceName, object.lineNumber, object.sourceLine, category, context, null);".

enter the following code:

if(error.message.indexOf('SHA-1') != -1 || error.message.indexOf('Security Policy') != -1){ return false; } 

should be about line 330.

+22
Jul 18 '15 at 18:58
source share

As indicated in the Firebug discussion group , the Firebug Console panel currently (Firebug 2.x) cannot filter one-time messages. You can filter only messages matching a specific text using the field.

There are upgrade requests, such as issue # 4507 , which have added such a filter, although it is unlikely that this will be implemented in Firebug, especially not in version 2.x, directly.

Firebug 3 will be integrated into the built-in DevTools, which will allow you to filter these alerts by unchecking the Warnings checkboxes in the Security menu inside the Console panel:

Disable security warnings within the * Console * panel of the built-in DevTools

In addition, I created error 1170476 asking me to keep messages to a minimum.

Update:

Firebug has been discontinued . Instead, there is a Firebug theme available in Firefox DevTools starting with Firefox 48. Error 1170476 is fixed with Firefox 42, so you will only see one message registered using showing how often the message occurred .

+28
Jun 02 '15 at 8:12
source share

Select the Console tab and while holding down the Ctrl key on your keyboard, click Errors, Information, Debug Information, Cookies.

Keep in mind that this will disable the output of all warnings logged in Firebug, not just those generated by googleapis.

+6
Aug 10 '15 at 9:59
source share

Remove HTTPS from the URL or save all resources locally.

0
Apr 06 '17 at 12:32
source share



All Articles