My domain is: news-watcher.com
I ran this command: sudo certbot certonly --domains 'news-watcher.com' --preferred-challenges=dns --dns-digitalocean --dns-digitalocean-credentials ./certbot-do-credentials
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for news-watcher.com
Error finding domain using the DigitalOcean API: Read failed from DigitalOcean: Expecting value: line 1 column 1 (char 0)
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.
and letsencrypt.log has th2022-12-08 18:22:16,775:DEBUG:urllib3.connectionpool:https://api.digitalocean.com:443 "GET /v2/domains/?per_page=200 HTTP/1.1" 403 None
2022-12-08 18:22:16,777:DEBUG:certbot_dns_digitalocean._internal.dns_digitalocean:Error finding domain using the DigitalOcean API: Read failed from DigitalOcean: Expecting value: line 1 column 1 (char 0)is entry:
I've tried curl "https://api.digitalocean.com/v2/domains/" and get this cloud flare block page:
[lots of HTML]
My web server is (include version): nginx/1.22.1
The operating system my web server runs on is (include version): arch rolling
My hosting provider, if applicable, is: digital ocean
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): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 2.1.0
So I'm blocked by cloudflare of using digital ocean. I've tried to launch chrome inside droplet and go through cloudflare checkup, it verified me, and chrome actually have access to api.digitalocean now, but it doesn't help with curl.
Any thoughts?