multiple domains multiple ips

How do I get the SSL certs to copy over correctly.

I have two domains website1.com and website2.com

Both have valid SSL certs.

Both have different ip’s

Both have the cert correctly working per domain, but when
I want to copy domain2.com certs to the postfix, dovecot usermin,
it seems to overwrite the domain1.com cert with the domain2.com.

or another way to put it,
when I copy the cert in Manage SSL Certificate
then log into domain2.com:20000 it works, but it also copys that same cert and overwrites
the domain1.com cert, then when logging onto domain1.com:20000 it gives errors that the
domain2.com cert is wanting to be confirmed as domain2.com, basically overwriting the original setup with domain1.com

Any help would be appreciated.

Howdy,

Unfortunately, it’s only possible to use one SSL certificate with those services – they don’t support having multiple SSL certificates within them.

So Virtualmin will indeed overwrite the SSL certificate when you copy one out to it.

The only way around that would be to use a single SSL certificate that’s configured with multiple domains – that’s called a UCC certificate.

-Eric