<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">You can move it to the ubuntu user crontab (crontab -e)</div><div class="gmail_default" style="font-family:tahoma,sans-serif">just remember to remove the "root" from the line.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br clear="all"></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><span style="font-family:tahoma,sans-serif"><span class="gmail_default" style="font-family:tahoma,sans-serif">Regards, </span><br></span></div><div dir="ltr"><span style="font-family:tahoma,sans-serif">Rabin</span></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 14 Jun 2020 at 13:36, אורי <<a href="mailto:uri@speedy.net">uri@speedy.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have 4 servers with Letsencrypt HTTPS certificates which should renew with certbot. They were created with user `ubuntu` with the flags --dns-route53, --dns-digitalocean and --dns-digitalocean-credentials respectively. When I installed certbot, a file /etc/cron.d/certbot was created:</div><div><br></div><div>SHELL=/bin/sh<br>PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br><br>0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew</div><div><br></div><div>But, I think it runs from root, and the credentials for these flags expect user ubuntu. And I checked, they are not automatically renewed (except one certificate which was created without these flags). How do I configure these certificates to renew automatically?</div><div><br></div><div>To renew them manually, I can run `sudo certbot renew` from user ubuntu, and then type the password.<br><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div style="direction:rtl"><div style="direction:rtl"><br></div><div style="direction:rtl"><br></div><div style="direction:rtl">אורי</div><div style="direction:rtl"><a href="mailto:uri@speedy.net" target="_blank">uri@speedy.net</a></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div>