SSL Cert Issue

12 posts / 0 new
Last post
#1 Wed, 03/01/2017 - 07:54
munklefish

SSL Cert Issue

Hi,

I created a dev site on a tmp domain(domain.com) and created an SSL Cert via letsencrypt. Once I launched the site, I changed the domain to domain.com. If I now try to create an SSL Cert for this new domain it always fails. Likewise, when the automated virtualmin server validation tool runs, it returns an error like this:

SSL website : The SSL certificate for this virtual server does not match domain.com or www.domain.com. Instead, it matches the hostnames : domain.de

Any solutions / ideas as to how I can rectify this?

Thu, 03/02/2017 - 10:15
munklefish

bump...

Wed, 03/08/2017 - 03:19
munklefish

bump

Sun, 03/12/2017 - 09:13 (Reply to #3)
unborn
unborn's picture

munklefish, you running live website on domain.de or domain.com?

Configuring/troubleshooting Debian servers is always great fun

Mon, 03/13/2017 - 05:39 (Reply to #4)
munklefish

The original SSL Cert was created for the .com domain when the site was in development. Once live, I switched the domain to .de

Then, once the site was live I tried generating a new SSL Cert but got the above mentioned error.

Mon, 03/13/2017 - 06:16 (Reply to #5)
unborn
unborn's picture

I see.. well if you dev the site locally or on whatever domain, make sure you copy only dbs and /public_html files, nothing else.. that should make it work right a way with old cert, however I have no idea what cms is that - perhaps some additional settings needs to be re-viewed but I think you should be fine.

Configuring/troubleshooting Debian servers is always great fun

Mon, 03/13/2017 - 06:23 (Reply to #6)
munklefish

It was developed on the same server. All we did was change the domain name to go live. All SSL cert related fiels were created by Virtualmin.

Mon, 03/13/2017 - 06:30 (Reply to #7)
unborn
unborn's picture

same server but different domain != same settings.. again check your cms for those settings and also copy as advised.

Configuring/troubleshooting Debian servers is always great fun

Mon, 03/13/2017 - 07:16 (Reply to #8)
munklefish

This has absolutely nothing to do with a CMS. This is Virtualmin 100%.

Virtualmin will not generate a SSL Cert for the new domain name. The output it gives is as indicated in the first post.

Mon, 03/13/2017 - 07:20 (Reply to #9)
unborn
unborn's picture

Ah I see.. error is: SSL website : The SSL certificate for this virtual server does not match domain.com or www.domain.com. Instead, it matches the hostnames : domain.de means your certs are correct as live site is on .de domain, this means its correct to my understanding. You did upload your stuff to domain.de or you changed domain.com to domain.de? - that is the part I perhaps miss - understand.

Configuring/troubleshooting Debian servers is always great fun

Mon, 03/13/2017 - 07:21 (Reply to #10)
unborn
unborn's picture

removed (duplicated post)

Configuring/troubleshooting Debian servers is always great fun

Mon, 03/13/2017 - 07:29 (Reply to #11)
unborn
unborn's picture

sorry munklefish... I got this message: Your comment has been queued for review by site administrators and will be published after approval. As this can take hours or days.. I would follow next time your reply otherwise contact me or jump on irc channel #virtualmin on freenode.

Configuring/troubleshooting Debian servers is always great fun

Topic locked