Issue using certbot with nginx
I was trying to create let'sencrypt certificate using certbot for my sub-domain and had following issue.Command :
ubuntu@localhost:~$ certbot --nginx -d my_subdomain.website.com
Issue :
The requested nginx plugin does not appear to be installed
Solution:
Ubuntu 20+
ubuntu@localhost:~$ sudo apt-get install python3-certbot-nginx
Earlier Versions
ubuntu@localhost:~$ sudo apt-get install python-certbot-nginx
You will need to replace
apt install python-certbot-nginx
by
apt install python3-certbot-nginx
You can install the Certbot nginx plugin with the following commands:
add-apt-repository ppa:certbot/certbotapt updateapt install python-certbot-nginx