How to validate a LAN ssl certificate?

I have a problem validating an SSL certificate on a HOTSPOT LAN.

In order to obtain one you have to supply a valid domain so the authority can validate you own it. To work around this to use it on a LAN ip I registered the certificate with localhost.domain.com and made a DNS entry for this so it resolves from the local side to the LAN address.

This all works but the SSL connection throws up the browser error about the the domain mismatch because I think MT redirects to the IP address for the browser which is looking to match the domain address not the IP address.

Is there any way to work round this that anybody knows? I don’t think you can use a local IP to get a valid SSL certificate?