Web security is of utmost importance in today’s digital world. One of the ways to ensure secure communication between a website and its users is to use SSL/TLS certificates. Let’s Encrypt is a free, automated, open Certificate Authority allowing website owners to obtain SSL/TLS certificates for their domains.
However, the process of getting and installing these certificates can be complicated. Fortunately, Cloudflare, the leading Content Delivery Network (CDN) provider, offers an easy solution by integrating Let’s Encrypt with its API key. This integration allows generating and installing Let’s Encrypt certificates directly from a Cloudflare account.
This article will show you how to create Let’s Encrypt certificates using Cloudflare API tokens to make your website more secure.
Step 1: Go to your Cloudflare Profile, and click API Tokens. Press the Create Token button.
Step 2: Set up everything like the following picture except select the domain name for your domain. Click Continue to Summary when everything is set.
Step 3: Confirm your domain and select the Create Token button.
Step 4: An API Token will be generated. Jot that down, and it will be used to generate your Let’s Encrypt certificate.
Step 5: Go to your Nginx Proxy Manager dashboard, and create a Let’s Encrypt certificate on the SSL section.
Enter your domain and email. Enable Use a DNS Challenge. Select Cloudflare and replace the dns_cloudflare_api_token with the one you collected in Step 3.
Press Save after everything is ready.
If an error occurs, it may need to give a value to the Propagation Seconds, such as 120 seconds.
If a Let’s Encrypt certificate is generated on your SSL section, congratulations, you have successfully created a Let’s Encrypt SSL certificate for your domain on Nginx Proxy Manager!