• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Let's Encrypt specifying multiple (sub)domains via CLI

bobtib

New Pleskian
When I try to use the letsencrypt extension via the CLI, I am unable to get it to generate the correct SAN entry in the certificate for both domain.com and www.domain.com.

The CLI documentation suggests :

plesk bin extension --exec letsencrypt cli.php -d domain.com -d www.domain.com

but this seems to generate a cert that has a SAN value of just DNS Name=domain.com

Using the Let's Encrypt extension from the plesk GUI and selecting the option 'include a "www" subdomain for the domain and each selected alias' seems to work fine, and correctly generates a cert with a SAN value of DNS Name=domain.com,DNS Name=www.domain.com

It looks like someone has already discovered/reported this problem in GitHub : SAN support

On a separate note the above quote from the CLI Documentation is incorrect in its present form as it fails to indicate that the --email:-m <string> option is required, otherwise an error is returned.
 
Back
Top