From f6d2141a480dd6b5b8ee0e48d43bb64773232791 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 26 Mar 2024 23:38:14 -0600 Subject: add header ids --- docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html') diff --git a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html index f35bca4..769bfa6 100644 --- a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html +++ b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html @@ -6,13 +6,13 @@ - Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt + id="generating-https-certificate-using-dns-a-challenge-through-lets-encrypt">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt - - + Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" /> + Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" /> @@ -44,18 +44,18 @@
-

Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt

+

Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt

I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.

-

Dependencies

+

Dependencies

sudo apt update && sudo apt install certbot -y
 
-

Get the Certificate

+

Get the Certificate

sudo certbot certonly --manual --preferred-challenges dns-01 --email senpai@email.com -d mydomain.duckdns.org
@@ -100,11 +100,11 @@ navanspi.duckdns.org.    60Once you can ensure that the TXT record changes has been successfully applied and is visible through the dig command, press enter on the Certbot prompt and your certificate should be generated.

-

Renewing

+

Renewing

As we manually generated the certificate certbot renew will fail, to renew the certificate you need to simply re-generate the certificate using the above steps.

-

Using the Certificate with Gunicorn

+

Using the Certificate with Gunicorn

Example Gunicorn command for running a web-app:

-- cgit v1.2.3