securing webmin with an ssl cert

Can anyone describe the correct process for installing a porper ssl cert for webmin. I’ve tried creating a new key using openssl, making a csr and then got a test cert from a provider, but when i point webmin at that key and cert file the ssl just breaks.

I’ve actually fixed this, it was a problem with the version of opensll on my dev box. However i do now have another issue.

I’ve installed a test cert for “” but when my clients go to they will get a certificate error because the name doesnt match.

Is there anyway to redirect all connections to webmin to