User Tools

Site Tools


Expand existing letsencrypt certficate for multiple domains

Check existing certifcates

certbot-auto certificates

Expand existing one

Remember to include the already existing domain certificate (

certbot-auto certonly --expand -d,,,

This will result in a certificate valid for all above domains.

Tweak the apache configuration

Only additions are shown below.

Non ssl conf:

ServerAlias *
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

SSL conf:

ServerAlias *
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/

Tested on

  • Debian 10.7

See also

wiki/expand_existing_letsencrypt_certficate_multiple_domains.txt · Last modified: 2021/01/14 16:38 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki