{"id":1724,"date":"2019-09-24T13:44:46","date_gmt":"2019-09-24T13:44:46","guid":{"rendered":"https:\/\/scunster.co.uk\/?p=1724"},"modified":"2019-09-24T14:02:04","modified_gmt":"2019-09-24T14:02:04","slug":"renew-lets-encrypt-automatically-using-crontab-ispconfig-nginx","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1724","title":{"rendered":"Renew Let&#8217;s Encrypt Automatically using crontab \/ ispconfig \/ nginx"},"content":{"rendered":"<p>Although when set up correctly within ispconfig everything updates correctly there are many circumstances where the Lets Encrypt updates fail to renew. (Typically they have renewed but nginx hasn&#8217;t restarted to apply the new certificates) Usually this is because of something that has been changed or amended while trying to troubleshoot a certificate problem with one or more domains.<\/p>\n<p>A quick way around this is to add the following line to crontab.<\/p>\n<p>Login to your server and run the following sudo command or login and change to root.<\/p>\n<pre>crontab -e<\/pre>\n<p>Add the following line to restart nginx every Sunday @ 11pm<\/p>\n<pre>0 23 * * 0 \/etc\/init.d\/nginx restart<\/pre>\n<p>You can of course change the time and frequency to something of your choosing but once a week seems to be more than adequate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although when set up correctly within ispconfig everything updates correctly there are many circumstances where the Lets Encrypt updates fail to renew. (Typically they have renewed but nginx hasn&#8217;t restarted to apply the new certificates) Usually this is because of something that has been changed or amended while trying to troubleshoot a certificate problem with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[492,12],"tags":[111,560,205,460,559,393,439,561,402],"class_list":["post-1724","post","type-post","status-publish","format-standard","hentry","category-ispconfig","category-webhosting","tag-cron","tag-crontab","tag-encrypt","tag-ispconfig","tag-lets","tag-lets-encrypt","tag-nginx","tag-renew","tag-server"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1724"}],"version-history":[{"count":1,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1724\/revisions"}],"predecessor-version":[{"id":1725,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1724\/revisions\/1725"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}