Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
blocks:server:nginx [2025-09-15 12:14] – [Acquire Let's Encypt certificates using DNS-01 challenge] mattiasblocks:server:nginx [2025-09-15 13:19] (current) – [Acquire Let's Encypt certificates using DNS-01 challenge] mattias
Line 101: Line 101:
   - You can't use the automatic "certbot" method mentioned above to obtain a certificate. You must instead use a more complicated DNS-based method.    - You can't use the automatic "certbot" method mentioned above to obtain a certificate. You must instead use a more complicated DNS-based method. 
  
-====Acquire Let's Encypt certificates using DNS-01 challenge==== 
  
-This outlines the principle steps to set up automatic certificate renewals on an internal server. 
-For this to work the server must have internet access. Digital ocean will be used as example here but the same principles apply to many major dns providers.. 
-Make sure you have a blocks system that works over http before attempting to att secure content over https. 
- 
-For DNS-01 challange to work on must use a DNS provider that has api access and a plugin that can make use of that api and work with the Let's Encypts cerbot.  E.g, Digital Ocean, Cloudflare, GoDaddy and many others providers has plugins or methods for this. 
- 
-===Principle steps=== 
- 
-Outline of the steps involved: 
- 
-  -   Purchase a suitable domain for your project from a domain registrar.  
-  -   Configure the domain at the registrar to use your DNS provider's name servers. 
-  -   Create an account at a dns provider unless you already have one.  
-  -   Create an api token with the dns provider that the certbot can use to make its api calls. :!: Make it as restricted as possible! 
-  - Create a file to store the api token or secret. Typically stored in an .ini file under /etc/letsencrypt/ 
-  - make sure the necessary cert-bot plugin is installed. Follow the dns providers instructions. 
-  - run the certbot  
-  - Configure nginx to handle the incoming requests the way you want.  
- 
-===Example of using Digital Ocean as dns provider=== 
-  -    At the domain name registrar, configure the domain to use Digital Oceans nameservers.   
-  -