Nginx Proxy Manager Wildcard Certificate Using Cloudflare

As found on Reddit:

HOWTO: Add a wildcard certificate in Nginx Proxy Manager using Cloudflare. Guide This guide assumes that you are currently using Cloudflare for DNS and Nginx Proxy Manager as your reverse proxy. As you can see in the first screenshot, I have several subdomains set up already but decided to issue a wildcard cert for all subdomains.

  1. Log into Nginx Proxy Manager, click SSL Certificates, then click Add SSL Certificate - LetsEncrypt.
  2. The Add dialog will pop up and information needs to be input. For Domain Names, put *, then click Add * in the drop down that appears. Toggle ON Use a DNS Challenge and I Agree to Let's Encrypt Terms of Service. When toggling DNS Challenge, a new section will appear asking for Cloudflare API Token.
  3. Log into Cloudflare and click your domain name. Scroll down and on the right hand side of the page, locate the API section then click Get Your API Token. On the next page, click the API Tokens header. Click Create Token on the next page.
  4. At the bottom of the page, click Get Started under the Custom Token header. On the next page, give the token a name (I called mine NPM for Nginx Proxy Manager). Under Permissions, select Zone in the left hand box, DNS in the center box, and Edit in the right hand box. At the bottom of the page, click Continue to Summary. On the next page, click Create Token.
  5. Once the token is created, it will take you to a page with the newly created token listed so that you can copy it. Click the Copy button or highlight the token and copy it.
  6. Back on the Nginx Proxy Manager page, highlight the sample token in the Credentials File Content box and paste your newly created token. Leave the Propagation Seconds box blank. Click Save.
  7. The box will change to Processing…. with a spinning icon. It may take a minute or two. Once it is finished, it will go back to the regular SSL Certificates page but with your new wildcard certificate added!

Click here to see pictures of the entire process, if you need to follow along with the instructions.

If anyone has questions or if something was not clear, please let me know.

note/nginx-proxy-manager-wildcard-certificate-using-cloudflare.txt · Last modified: 09/18/22 9:03 pm by Jotter