Automatic ssh renew for virtualizor with Cron jobs

1 Star2 Stars3 Stars4 Stars5 Stars 3 امتیاز
Loading…

In the name of allah

if you reading this article means you know what is virtualizor , KVM , virtualization and…

guys who using virtualizor for managing virtualization know that we can set SSL for our hostname from its panel but there is a problem!
if we forget to renew ssl certificate – lets encrypt – ssl gone and its bad!
how to make it auto ?
simply add below line to your cronjobs file:

0 0 1 * *  /usr/bin/bash /usr/local/virtualizor/scripts/acme.sh --renew --force --days 80 --home '/usr/local/virtualizor/conf/le/acme/admin' --certhome '/usr/local/virtualizor/conf/le/acme/admin/certs' -d 'host.yourhostname.com' --webroot '/usr/local/virtualizor/enduser' --accountemail 'youremail@domain.com' --keylength '4096' >> '/var/virtualizor/log/letsencrypt.log' 2>&1
ارسال تیکت