Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Certbot add www domain to existing domain certificate

I have installed an SSL certificate from Let's Encrypt with Certbot on my Apache server with Debian 8 following this tutorial from Let's Encrypt's own documentation:
$ certbot --apache


You need to specify the domains where you want to install the certificates for, but I only added the example.com domain. Now I want to add the www.example.com, but cannot find how to do this.
by

1 Answer

Amit8z4mc
Use this command: certbot modifier --expand, just like the following:
sudo certbot-auto certonly --webroot -w /srv/www/htmlroot/ --expand -d domain1.com -d domain2.com -d www.domain1.com

Login / Signup to Answer the Question.