SSL Certificate "Copy to [service]" issue...

Hi, am new to Virtualmin, so still learning how it works and testing things out. However, one issue that is worrying me is the SSL Certificate "Copy to Webmin/Usermin/Postfix" feature.

Once I've copied the cert over to the services, I see the message This SSL certificate is already being used by : Webmin, Usermin, Dovecot (host example.com), Postfix - great!

However, every now and then, the certificate seems to be "uncopied" to the respective services, and I am left with just This SSL certificate is already being used by : Dovecot (host example.com) and the "Copy to ..." buttons appear underneath again.

Any ideas why this is happening?

I went to send an email earlier from my email client (Thunderbird) and the certificate was rejected, even though it was working earlier.

Another strange issue also, is that the certificate which Thunderbird complained about was issued to another vh on the server - really need to avoid that happening again before I can migrate client sites over, as wouldn't look good if they were asked to accept a certificate from another website/company!

Any help would be appreciate, thanks in advance.

Status: 
Closed (fixed)

Comments

Howdy -- thanks for contacting us!

Some services such as Postfix can only have one SSL certificate.

If a different domain on the same IP address has it's certificate copied out, that would overwrite the current one.

Could that explain what you are seeing there?

Hi, thanks for your reply. Yes that would totally explain it! I only have one IP on the server.

Does that also apply to Webmin, Usermin, and FTP?

So i'm guessing I need one main certificate for the server (e.g. vps.example.com) and use that for Postfix and any other service which can only have one certificate (please could you confirm which services).

But...

I read somewhere that having a virtual server with the same name as the hostname can cause issues, which is what I have. But how else would I get a Let's Encrypt certificate for the main hostname of the server (for use on the Virtualmin login, Postfix, etc)?

Anybody please?

FTP would be like that too.

A way to get an SSL Certificate for the name "vps.example.com" would be to create an alias for another domain, perhaps the "example.com" domain. Then tie in the example.com and vps.example.com domains into one cert, and copy that into your services.

Seems that having "vps.example.com" as a virtual host (which is the same as the hostname) was indeed causing issues, with certs, DKIM, SPF, all sorts. So i deleted the virtual host, set up a new one as "example.com", and created a sub-server off it for "vps.example.com", as you suggested. All seems to be great now :) Thanks.

Status: Active ยป Closed (fixed)