<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cron Archives - Installing.in</title>
	<atom:link href="https://www.installing.in/tag/cron/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.installing.in/tag/cron/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Sep 2019 08:07:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
<site xmlns="com-wordpress:feed-additions:1">110734269</site>	<item>
		<title>How to Set up Letsencrypt Auto Renewal</title>
		<link>https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/</link>
					<comments>https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/#comments</comments>
		
		<dc:creator><![CDATA[Rajeev]]></dc:creator>
		<pubDate>Thu, 19 May 2016 15:00:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[letsencrypt]]></category>
		<guid isPermaLink="false">https://www.installing.in/?p=71</guid>

					<description><![CDATA[<p>Letsencrypt.org issued SSL certificates are valid for 90 days and you will need to renew it manually to continue using the certificates. As I am writing this, there is no... </p>
<p>The post <a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Letsencrypt.org issued SSL certificates are valid for 90 days and you will need to renew it manually to continue using the certificates.</p>
<p>As I am writing this, there is no automatic renewal option in the letsencrypt package so we will need to set up something to do it for us.</p>
<p>The command to renew letsencrypt certificate manually is:</p>
<pre><span style="color: #ff0000;">/path/to/letsencrypt-client</span>/letsencrypt-auto renew</pre>
<p><strong>in the above command, you need to replace path/to/letsencrypt-client with the actual path.</strong></p>
<p>if you have followed this<a href="https://www.installing.in/how-to-install-letsencrypt-with-nobebb-and-nginx/" target="_blank" rel="noopener noreferrer"> nodeBB letsencrypt tutorial</a>, this command will be</p>
<pre><span style="line-height: 1.5;">/opt/letsencrypt/letsencrypt-auto renew</span></pre>
<p><span style="line-height: 1.5;">if your domain is not eligible for renewal you will get a message like this:</span></p>
<pre>Checking for new version...
Requesting root privileges to run letsencrypt...
 /root/.local/share/letsencrypt/bin/letsencrypt renew
Processing /etc/letsencrypt/renewal/<span style="color: #ff0000;">example.com</span>.conf

The following certs are not due for renewal yet:
 /etc/letsencrypt/live/<span style="color: #ff0000;">example.com</span>/fullchain.pem (skipped)
No renewals were attempted.</pre>
<p>What we can do to automate letsencrypt certificate renewal is to set up a cron job to do it for us at regular intervals. This cron job will periodically run the above-mentioned command to renew the SSL certificate for our domain.</p>
<p>To set up a cron we need to edit the crontab.</p>
<p>To edit crontab run following command:</p>
<pre>sudo crontab -e</pre>
<p>If this is the first time you are editing crontab it may ask you to select your favorite editor. Here we will select nano by typing the digit in front of it and pressing enter.</p>
<p><a href="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_e2e-11-65___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_101%C3%9740.png?ssl=1"><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-88" src="https://i0.wp.com/www.installing.in/wp-content/uploads/2016/05/rv_%E2%80%94_root_e2e-11-65___opt_letsencrypt_%E2%80%94_ssh_%E2%80%94_101%C3%9740.png?resize=430%2C126&#038;ssl=1" alt="crontab nano" width="430" height="126" /></a></p>
<p>This will open the crontab file in nano.</p>
<p><strong>Add the following line to the bottom of the file if you are using Nginx web server:</strong></p>
<pre>30 2 * * 1  <span style="color: #ff0000;">/path/to/letsencrypt-client</span>/letsencrypt-auto renew &gt;&gt; /var/log/le-renew.log
35 2 * * 1  /etc/init.d/nginx reload</pre>
<p><strong>or if you are using Apache web server add these lines:</strong></p>
<pre>30 2 * * 1  <span style="color: #ff0000;">/path/to/letsencrypt-client</span>/letsencrypt-auto renew &gt;&gt; /var/log/le-renew.log
35 2 * * 1  /etc/init.d/apache2 reload</pre>
<p><strong>Remember to change the /path/to/letsencrypt-client with the actual path of your letsencrypt client folder in the above lines or the renewal will fail.</strong></p>
<p>save the file by pressing control+O</p>
<p>exit nano by pressing control+X and then enter.</p>
<p>You have now successfully edited the crontab.</p>
<p>What this cron will do is to run the letsencrypt renewal script at 2:30 am every Monday and restart the webserver at 2:35 am.</p>
<p>The output of the process will be saved in the log file we set up in the crontab i.e.</p>
<pre>/var/log/le-renewal.log</pre>
<p>You can check the log file to know what&#8217;s happening whenever this cron is running.</p>
<p>That&#8217;s it.</p>
<p>The post <a href="https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/">How to Set up Letsencrypt Auto Renewal</a> appeared first on <a href="https://www.installing.in">Installing.in</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.installing.in/how-to-set-up-letsencrypt-auto-renewal/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">71</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 20/51 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching using Redis (Request-wide modification query)

Served from: installing.in @ 2026-05-21 20:15:42 by W3 Total Cache
-->