How to fix certbot unrecognized arguments: --dns-cloudflare-credentials on Ubuntu

Problem:

You are trying to request a Let’s Encrypt certificate using certbot, but instead you see an error message like

example-3.txt

Solution

Install the required package. This is the solution if you have installed python3-certbot as an apt package:

example-2.sh

This is the solution if you have installed certbot as a snap:

example-1.sh
sudo snap install certbot-dns-cloudflare

 


Check out similar posts by category: Networking