ssl Certificate Invalid

I created the ssl certificate using ISPconfig and this is the only domain using this IP. When I access https://www.example.com I get the security warning stating the name on the certificate does not match the domain.

when veiwing the certificate, it does state issue by: localhost.localdomain which explain the warning.