Webmail certificate error

I look in the certificate and The CN is equal my FQDN, localhostname.domain. I still get the error when I open the webpage.