Hi, I have just installed wordpress, nginx and cloudflare on docker containers using portainer and can't connect wordpress due to "internal error" given on nginx interface when trying to create a new SSL certificate.
Apparently, the API token from cloudflare is ok, I used it for nginx set up. The log says it is not though.
The domain was pointed from Google to cloudflare and is active.
Can anyone show some light?
Thanks.
My domain is: wordpress.theapothecary.app
I ran this command: Portainer interface
It produced this output: Error determining zone_id: 6003 Invalid request headers. Please confirm that you have supplied valid Cloudflare API credentials. (Did you copy your entire API token/key? To use Cloudflare tokens, you'll need the python package cloudflare>=2.3.1. This certbot is running cloudflare 2.9.10),
My web server is (include version): Nginx
The operating system my web server runs on is (include version): Canonical Ubuntu 22 - Docker composer
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Portainer
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): This certbot is running cloudflare 2.9.10
another attempt on nginx using another way returned:
Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-18" --agree-tos --email "deborahsbeghen@gmail.com" --domains "wordpress.theapothecary.app" --authenticator dns-cloudflare --dns-cloudflare-credentials "/etc/letsencrypt/credentials/credentials-18"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error determining zone_id: 6003 Invalid request headers. Please confirm that you have supplied valid Cloudflare API credentials. (Did you copy your entire API token/key? To use Cloudflare tokens, you'll need the python package cloudflare>=2.3.1. This certbot is running cloudflare 2.9.10)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)