• 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.

Question Can we create a letsencrypt certificate with multiple wildcards? e.g. *.domain.com *.domain.ch

Christian Alles

New Pleskian
Hi,

I'm wondering is it possible to create a letsencrypt certificate that includes all subdomains of all domain aliases.

My Setup
domain.com
domain.ch (is alias of domain.com)

Creating a wildcard certificate with the letsencrypt extension will create a certificate for *.domain.com but only for domain.ch so each subdomain on ch-domain throws an certificate error.
Looking around the letsencrypt forum I found that theoretically it should be possible to have multiple wildcards like *.domain.com and *.domainn.ch in one certificate, but I'm completely at a loss how to achieve that.

I already tried working around this by creating domain.ch not as alias but as own subscription or website pointing to the same webroot but this way mail adresses and subdomains won't be aliased automatically and I would have to manually create and redirect them, which just isn't efficient.

Also I can't just redirect to the com-domain since some of our clients are quite picky about having the ch in the domain.
I also tried if it was possible to add those with the CLI and the --expand option, but either I'm using it the wrong way or it is not possible to add wildcard domains using the CLI.

Code:
plesk bin extension --exec letsencrypt cli.php -d domain.com -d *.domain.ch -d *.domain.de -d *.domain.at  --email [email protected] --expand

Maybe somebody knows how to do this using the CLI, the extension or certbot?

best regards
Christian
 
Back
Top