Skip to content

Instantly share code, notes, and snippets.

@nanusdad
Last active August 27, 2020 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanusdad/56d43a0a37e32c1aa380bc8b06e4927e to your computer and use it in GitHub Desktop.
Save nanusdad/56d43a0a37e32c1aa380bc8b06e4927e to your computer and use it in GitHub Desktop.
Using certbot to add and expand domains to cert

To use Lets Encrypt certbot command to install certificate to work with AWS Lightsail Wordpress instance

sudo certbot certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ \
-d domain1.org

To add new domains to certificate

sudo certbot certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ \
--expand -d domain1.org,www.domain1.org,domain2.edu,domain3.org
Restart of instance may be required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment