Skip to content

Instantly share code, notes, and snippets.

@acosonic
Created April 7, 2021 09:32
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 acosonic/709a9e5760c2a9d2f538d07058847c28 to your computer and use it in GitHub Desktop.
Save acosonic/709a9e5760c2a9d2f538d07058847c28 to your computer and use it in GitHub Desktop.
Virtualmin renew all letsencrypt certificates for hosts having SSL
#!/bin/sh
doms=`virtualmin list-domains --with-feature ssl --name-only`
for dom in $doms; do
virtualmin generate-letsencrypt-cert --domain $dom --renew 2 --web --default-hosts
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment