We recently enabled HTTPS on one of our Dataminer Cluster and it works when we use the DNS address or the IP directly to the VIP but when we are on the machine and try to get into cube via the Local Host address it will not open cube.
SSL certificates are bound to a 'common name', which is usually a fully qualified domain name but can be a wildcard name (eg. *.domain.com) or even an IP address.
Each SSL certificate will have unique serial numbers and fingerprints which will need to match. I assume the certificate is being rejected as the details don't match because you don't use the hostname/ip that's defined in your certificate.
The best solution would be to use the domain name, even when you are connected to the localhost.