[GH-ISSUE #4968] [Question]: cannot get ssl cert #3489

Closed
opened 2026-10-31 20:32:48 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @nicolas-ncc on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4968

What are you trying to do?

I using buildin Cloudflare SSL Certificate option to get ssl cert but failed.
Can some brother help??

Image

What have you already tried?

No response

3x-ui version

latest

How did you install 3x-ui?

install.sh script

Operating system

Debian 13

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @nicolas-ncc on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4968 ### What are you trying to do? I using buildin Cloudflare SSL Certificate option to get ssl cert but failed. Can some brother help?? <img width="850" height="109" alt="Image" src="https://github.com/user-attachments/assets/ac4d2850-7c3b-42dd-b11f-1d85f4e0deda" /> ### What have you already tried? _No response_ ### 3x-ui version latest ### How did you install 3x-ui? install.sh script ### Operating system Debian 13 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2026):

Thanks for reporting. To help diagnose the failure, we need the actual error output — the screenshot in the issue is too small to read.

Option 20 (Cloudflare SSL) works by calling acme.sh with Cloudflare DNS validation. The key command it runs is:

~/.acme.sh/acme.sh --issue --dns dns_cf -d <your-domain> -d *.<your-domain> --log --force

The most common reasons this fails:

  1. Wrong API Token permissions — if you chose API Token (option t), the token must have the Zone → DNS → Edit permission for the target zone. A read-only or overly-scoped token will be rejected by Cloudflare.

  2. Domain not managed by Cloudflare DNS — the domain must be using Cloudflare as its nameserver, not just proxied. If you registered the domain elsewhere and haven't delegated the NS records to Cloudflare, DNS validation cannot work.

  3. Global API Key path — if you chose g, you need the Global API Key (found in My Profile → API Tokens → Global API Key) and the account email, not an API token.

To get the full error, please run:

cat ~/.acme.sh/acme.sh.log

and paste the relevant lines here (especially anything near CF_Token, dns_cf, or error).

Also please share:

  • Which credential type you chose: API Token (t) or Global API Key (g)
  • Whether the domain's DNS is hosted at Cloudflare (i.e., Cloudflare is the authoritative nameserver)
<!-- gh-comment-id:4631820379 --> @github-actions[bot] commented on GitHub (Jun 5, 2026): Thanks for reporting. To help diagnose the failure, we need the actual error output — the screenshot in the issue is too small to read. **Option 20 (Cloudflare SSL)** works by calling [acme.sh](https://github.com/acmesh-official/acme.sh) with Cloudflare DNS validation. The key command it runs is: ``` ~/.acme.sh/acme.sh --issue --dns dns_cf -d <your-domain> -d *.<your-domain> --log --force ``` The most common reasons this fails: 1. **Wrong API Token permissions** — if you chose *API Token* (option `t`), the token must have the **Zone → DNS → Edit** permission for the target zone. A read-only or overly-scoped token will be rejected by Cloudflare. 2. **Domain not managed by Cloudflare DNS** — the domain must be using Cloudflare as its nameserver, not just proxied. If you registered the domain elsewhere and haven't delegated the NS records to Cloudflare, DNS validation cannot work. 3. **Global API Key path** — if you chose `g`, you need the *Global API Key* (found in My Profile → API Tokens → Global API Key) **and** the account email, not an API token. **To get the full error, please run:** ```bash cat ~/.acme.sh/acme.sh.log ``` and paste the relevant lines here (especially anything near `CF_Token`, `dns_cf`, or `error`). Also please share: - Which credential type you chose: API Token (`t`) or Global API Key (`g`) - Whether the domain's DNS is hosted at Cloudflare (i.e., Cloudflare is the authoritative nameserver)
Author
Owner

@nicolas-ncc commented on GitHub (Jun 5, 2026):

done, many thanks

<!-- gh-comment-id:4632490257 --> @nicolas-ncc commented on GitHub (Jun 5, 2026): done, many thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3489
No description provided.