Package: firefox-esr
Version: 60.6.1esr-1~deb9u1
Followup-For: Bug #928449

The problem is caused by an expired intermediate certificate in the builtin
chain of trust that the browser applies to verify signatures on addons.

More details are available at
https://blog.mozilla.org/addons/2019/05/04/update-regarding-add-ons-in-firefox/
https://bugzilla.mozilla.org/show_bug.cgi?id=1548973
https://bugzilla.mozilla.org/show_bug.cgi?id=1549078

Unfortunately, the solution devised by Firefox devs is based on Studies
(as far as I know, a way to push high-level code to installed browsers).

I believe studies are disabled in the firefox-esr package in Debian, and
I could not enable them.  I worked around the issue by downloading the
XPI file that the studies would have pushed, extracting the certificate,
and importing it in firefox (Preferences -> Privacy and Security ->
View Certificates -> Import).

I presume I'll have to manually delete that certificate from FF when upstream
makes a new fixed ESR version of FF, or a new version of firefox-esr appears
in Debian with an updated cert, but in the meantime it works for me.

If you want to try this out AND you trust both me and bugs.debian.org,
you can find the certificate in the attached file moz-add-int.pem,
ready to import.

Otherwise, here is the procedure I applied:

- navigate to https://normandy.cdn.mozilla.net/api/v1/recipe/signed/
- locate the recipe with name
    "Hotfix: Update XPI signing intermediate [Bug 1548973]"
  and copy the corresponding addonUrl
- use wget or curl to fetch the xpi file from addonUrl, and rename it to
  something.zip
- unzip it to a temporary directory
- edit experiments/skeleton/api.js, copy the base64-encoded string in
  double quotes from the line "let intermediate = ...", and save it to a
  temporary file, say /tmp/xyz
- convert it to DER form
    base64 -d </tmp/xyz >/tmp/moz-add-int.der
- import it in FF
- or inspect and/or convert to PEM format:
    openssl x509 -in /tmp/moz-add-int.der -inform DER -text -noout
    openssl x509 -in /tmp/moz-add-int.der -inform  DER \
                -out /tmp/moz-add-int.pem -outform PEM

By the way, this upstream bug disables many extensions that improve security
or privacy for FF users, including ad-blockers, javascript filters, password
managers: I would have labeled it "important".
-----BEGIN CERTIFICATE-----
MIIHLTCCBRWgAwIBAgIDEAAIMA0GCSqGSIb3DQEBDAUAMH0xCzAJBgNVBAYTAlVT
MRwwGgYDVQQKExNNb3ppbGxhIENvcnBvc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