Firefox does not trust this site because it uses a certificate that is not valid

If you use CentOS, try

httpd -S

Or check your config files manual to find duplicated definitions port + server name.