Firefox 31 enables the mozilla::pkix module for stricter certificate verification.
Please refer to the document [1]/articles/ssl-certificate-self to regenerate the self-signed certificate.