plesk / letsencrypt-plesk

Let’s Encrypt extension for Plesk gives all Plesk users the power to get a free Let’s Encrypt certificate with just a couple of clicks.
https://www.plesk.com/extensions/letsencrypt/
180 stars 25 forks source link

Commandline option --letsencrypt-plesk:plesk-secure-panel only works for one domain #122

Open devanes opened 7 years ago

devanes commented 7 years ago

The commandline option --letsencrypt-plesk:plesk-secure-panel only encrypts the panel for the latest domain where the option is used. All previous domains get a certificate error when accessing the panel.

Steps to reproduce, domain.com and anotherdomain.com should be domains on the same server:

  1. /usr/sbin/plesk bin extension --exec letsencrypt cli.php -d domain.com -d www.domain.com--letsencrypt-plesk:plesk-secure-panel
  2. Access https://domain.com:8443/ : Certificate OK
  3. /usr/sbin/plesk bin extension --exec letsencrypt cli.php -d anotherdomain.com -d www.anotherdomain.com--letsencrypt-plesk:plesk-secure-panel
  4. Access https://anotherdomain.com:8443/ : Certificate OK
  5. Access https://domain.com:8443/ : Certificate Error! Certificate only valid for anotherdomain.com and www.anotherdomain.com

Expected result: certificate OK for both domains.

We have lots of domains (and subscriptions) on our servers. Each user uses it's own domain to access the panel. So it would be nice if the panels for all domains had a working certificate.