<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Letsencrypt on Mike Bell - Blog &amp; Stuff</title><link>https://mikebell.io/tags/letsencrypt/</link><description>Recent content in Letsencrypt on Mike Bell - Blog &amp; Stuff</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hello@mikebell.io (Mike Bell)</managingEditor><webMaster>hello@mikebell.io (Mike Bell)</webMaster><copyright>© 2026 Mike Bell</copyright><lastBuildDate>Sun, 20 Dec 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://mikebell.io/tags/letsencrypt/index.xml" rel="self" type="application/rss+xml"/><item><title>Easy Auto Renewal with Letsencrypt</title><link>https://mikebell.io/posts/easy-auto-renewal-with-letsencrypt/</link><pubDate>Sun, 20 Dec 2015 00:00:00 +0000</pubDate><author>hello@mikebell.io (Mike Bell)</author><guid>https://mikebell.io/posts/easy-auto-renewal-with-letsencrypt/</guid><description>
&lt;p>After reading a lot of different docs for letsencrypt I couldn&amp;rsquo;t find an easy way of auto renewing my domains simply. So after I&amp;rsquo;ve compiled what I&amp;rsquo;ve found so far.&lt;/p>
&lt;p>Add the following to your nginx conf block block:&lt;/p>
&lt;pre>&lt;code>location /.well-known/acme-challenge/ {
alias /var/www/mikebell.io/.well-known/acme-challenge;
try_files $uri =404;
}
&lt;/code>&lt;/pre>
&lt;p>Then add the following to crontab as root:&lt;/p>
&lt;pre>&lt;code>0 0 1 * * letsencrypt certonly --webroot -w /var/www/mikebell.io/ -d mikebell.io --renew-by-default
&lt;/code>&lt;/pre>
&lt;p>The &lt;code>--renew-by-default&lt;/code> is key here since it means that it runs without being interactive.&lt;/p>
&lt;p>Thanks for reading via RSS!&lt;/p>
&lt;p>Send me a message on &lt;a href="https://remotelab.uk/mikebell">Mastodon&lt;/a> or &lt;a href="mailto:hello@mikebell.io">email me&lt;/a>&lt;/p></description></item></channel></rss>