• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Adding Domains in Certbot

January 25, 2021

You can register multiple domains to a single SSL certificate. This is particularly useful if you are hosting multiple domains on one server. This command adds more domains to your existing certificate.

certbot --expand -d existing.com -d newdomain1.com -d newdomain2.com

certbot --expand -d existing.com -d newdomain1.com -d newdomain2.com

Check if the domains were added.

certbot certificates

certbot certificates

Certbot certificates are valid for 90 days, but they automatically renew themselves if expiration is less than 30 days. If you need to renew manually for some odd reason, you can run this command. You can also perform a dry-run before renewing.

certbot renew
certbot renew --dry-run

certbot renew certbot renew --dry-run

Filed Under: Linux Tagged With: add, certbot, certificate, domains

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023