Unable to auto renew certificate using Cloudflare DNS validation
See original GitHub issueAre you in the right place?
- If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit.
- If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask.
- If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the right place.
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image? yes.
REPOSITORY TAG IMAGE ID CREATED SIZE
jc21/nginx-proxy-manager latest 5d9d277f28f1 4 days ago 810MB
- Are you sure you’re not using someone else’s docker image? yes.
- If having problems with Lets Encrypt, have you made absolutely sure your site is accessible from outside of your network? yes.
Describe the bug
-
I am running NPM in 2 different Ubuntu 18.04 LTS server. I am using Cloudflare DNS validation.
-
Both NPM docker failed to renew Let’s Encrypt wildcard certificate with auto renewal. But able to renew it when run it manually in SSL Certificate tab.
-
What version of Nginx Proxy Manager is reported on the login page? 2.8.1
Expected behavior Expect auto certificate renewal when close to expiry.
Screenshots If applicable, add screenshots to help explain your problem.
Operating System
- Ubuntu 18.04 LTS Server.
Additional context
Auto renewal
[3/22/2021] [7:57:36 AM] [SSL ] › ℹ info Renewing SSL certs close to expiry...,
[3/22/2021] [8:01:05 AM] [SSL ] › ✖ error Error: Command failed: /usr/bin/certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation ,
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.,
Attempting to renew cert (npm-1) from /etc/letsencrypt/renewal/npm-1.conf produced an unexpected error: Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.. Skipping.,
All renewal attempts failed. The following certs could not be renewed:,
/etc/letsencrypt/live/npm-1/fullchain.pem (failure),
1 renew failure(s), 0 parse failure(s),
,
at ChildProcess.exithandler (child_process.js:308:12),
at ChildProcess.emit (events.js:314:20),
at maybeClose (internal/child_process.js:1051:16),
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5),
Connection Error: Error: read ECONNRESET,
Connection Error: Error: read ECONNRESET,
Renew manually
[3/22/2021] [8:48:21 AM] [SSL ] › ℹ info Renewing Let'sEncrypt certificates via Cloudflare for Cert #1: *.example.com,
[3/22/2021] [8:54:49 AM] [SSL ] › ℹ info - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
Processing /etc/letsencrypt/renewal/npm-1.conf,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
new certificate deployed without reload, fullchain is,
/etc/letsencrypt/live/npm-1/fullchain.pem,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
,
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
,
Congratulations, all renewals succeeded. The following certs have been renewed:,
/etc/letsencrypt/live/npm-1/fullchain.pem (success),
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -,
[3/22/2021] [8:57:36 AM] [SSL ] › ℹ info Renewing SSL certs close to expiry...,
[3/22/2021] [8:57:37 AM] [Nginx ] › ℹ info Reloading Nginx,
[3/22/2021] [8:57:37 AM] [SSL ] › ℹ info Renew Complete,
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:15
Top Results From Across the Web
Unable to auto renew certificate using Cloudflare DNS ...
I am using Cloudflare DNS validation. Both NPM docker failed to renew Let's Encrypt wildcard certificate with auto renewal.
Read more >Unable to renew cerificate on AWS - CNAME problem?
AWS Certificate Manager (ACM) was unable to renew the certificate automatically using DNS validation. You must take action to ensure that the ...
Read more >SSL Certificate renewal - ERROR - Security
We are trying to approve the SSL Certificate for our website, but the Cloudflare system keeps showing an error while attempting to validate...
Read more >SSL cert renewal and DNS - Security
I am gussing that Cloudflare is not able to renew this certificate because your account is setup as partial CNAME - meaning: this...
Read more >DCV Methods - Domain Control Validation
Non-wildcard hostname certificates will automatically renew as long as the hostnames on the certificate are still proxying their traffic through ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fabiandev thanks for the fix.
I just used the letsencrypt.ini with
And that was enough for it to work.
Thank you very much for sharing your solution. I can happily share that it worked for me as well.