Issue using certbot with nginx

admin

I'm actually working on a webapp, I use Reactjs for the frontend and Golang for the backend. Those 2 programs are hosted separately on 2 VMs on Google-Compute-Engine. I want to tát serve my phầm mềm through https so sánh I choose to tát use Nginx for serving the frontend in production. Firstly I made my config tệp tin for Nginx:

#version: nginx/1.14.0 (ubuntu)
server {
     listen 80 default_server;
     listen [::]:80 default_server;

     root /var/www/banshee;
     server_name XX.XXX.XX.XXX; #public IP of my frontend VM

     index index.html;

     location / {
       try_files $uri /index.html =404;
     }
   }

For this part everything works as expected but after that I want to tát serve my App over https following this tutorial. I installed the packages software-properties-common,python-certbot-apache and certbot but when I tried

sudo cerbot --nginx certonly

I get the following message:

gdes@frontend:/etc/nginx$ sudo certbot --nginx certonly
Saving debug log to tát /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The requested nginx plugin does not appear to tát be installed
The requested nginx plugin does not appear to tát be installed

I made some searches on Google and here and I still can't figure out which plugin is missing or an other way to tát fix this.

Does someone have an idea tohelp u ?

Thanks a lot :)