Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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