Hi John and thanks for the information. I never imagined that so many programs depend on Firefox. If you use Firefox regularly, it's not a problem, but for people like me who rarely open it, it can be a headache.
Why are all these programs based on Firefox certificates and not on /etc certificates? This creates a hidden dependency that can turn into hell, just as it has been for me. Anyway, my Okular it's working fine again. From now I'll be more careful with the .mozilla directory.