Problems with SSL Cert

Hey everyone,

A couple days ago I installed an SSL onto my virtualmin server. Eventually I got it to work, so when I log onto my virtualmin backend at, the url bar shows the lock and the cert info is correct. However when I go onto the website, which is running magento on, I get an invalid cert warning and the cert info shows the self-signed one I created in order to set up my current SSL.

Does anyone know how I can go about fixing this? For some reason the SSL seems to be applying to the server but not to the main website.