Skip to content

Instantly share code, notes, and snippets.

@alpenzoo
Created April 20, 2023 05:12
Show Gist options
  • Save alpenzoo/587e7927c086b9c4fc233422146ad211 to your computer and use it in GitHub Desktop.
Save alpenzoo/587e7927c086b9c4fc233422146ad211 to your computer and use it in GitHub Desktop.
Letsencrypt usage
#add another domain
certbot --expand -d subdomain.domain.com
#add another domain with SSL and 307 redirect
certbot --webroot -w /var/www/html certonly -d subdomain.domain.com 307 -d subdomain.NEWdomain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment