Steps to fixing the problem:
- Close firefox;
- Go to
C:\Users\<your user>\AppData\Roaming\Mozilla\Firefox\Profiles\<some profile>
- Delete
SiteSecurityServiceState.txt
Source:
http://stackoverflow.com/questions/40126253/add-exception-to-an-invalid-ssl-certificate-website-sending-hsts-header