Hello,
We know about certain (very rare) issues with Firefox, but they usually occur only after installation of either Firefox or Avast. Have you reinstalled Firefox or AV? What is your version of FF? File->Preferences, Privacy & Security, scroll down, View Certificates button, is there AVAST certificate present? You can also try to run in terminal command
/Library/Application\ Support/Avast/hub/usermodules/020_cert.sh add_app Firefox
does the command require you to specify password? If yes, you will probably have to reinstall Firefox, we have seen this issue few times in the wild (for some reason something locks list of certificates via password so we can not add our certificate to the list; we have no idea who or what is the culprit of this).
Kind regards,
Ondrej Kolacek