secure connection failure firefox and thunderbird

Since yesterday I have been unable to get to https sites in Firefox and Thunderbird, but can with Chrome. I get the following error

  • An error occurred during a connection to The security card or token does not exist, needs to be initialized, or has been removed. (Error code: sec_error_no_token)
    *I’m guessing that somehow the certificates data base got corrupted. I have created a new .mozilla directory, but that doesn’t help. I don’t know how the certificates db is created and how to repair it if that is the problem. Any help would be appreciated.

Problem has been solved. It seems that my system had mozilla-nss as 3.21, but certs as 3.20. I changed repositories and got them in synch and everything is fine now.