How to make domains to use new default certificate if the old one is expired?
To do it automatically, launch the following command:
# for i in `plesk db -Ne "select d.name from domains d join hosting h on d.id=h.dom_id join certificates c on c.id=h.certificate_id where c.name='Old certificate name'"`; do plesk bin domain -u $i -certificate-name 'New certificate name'; done
where Old certificate name is the name of the expired certificate displayed in Subscriptions > example.com > Hosting settings:
and New certificate name is the name of the new valid certificate.