Lets-Encrypt not working

I have ERPNext v12 and I wanted to use the Let’s Encrypt certificate:

before, I used to access via http://{domain_name}

I set it up multitenant from here:
https://github.com/frappe/bench/wiki/Multitenant-Setup

and then

I ran the commands to set up the Lets-Encrypt certificate from here:

https://github.com/frappe/erpnext/wiki/Setting-up-TLS-SSL-certificates-Let%27s-Encrypt-for-ERPNext-sites

I did it Using Bench Command

Now, I can’t access it in any way.

can somebody guide me?

PD:

I ran the command:
sudo nginx -t
and it returns

nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/frappe-bench.conf:32
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

and my nginx version is:

nginx -v

nginx version: nginx/1.16.1

please follow this thread may help.

I did it but still not working. how can I see the logs? or something where I can start to look for the issue?

Sudo nano /etc/nginx/conf.d/frappe-bench.conf
Edit your listen statement from:

listen 443;

to

listen 443 ssl;

and comment out or delete :

# ssl on;   

then check nginx -t again.

Done, now I dont have the warning, but the problem is still.

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

What OS version? Ubuntu 18 or 20?
I don’t use the bench config anymore. I go straight to the certbot install for nginx

@josmeldiaz21 Easy fix is to install this version of virtualenv:

sudo pip install virtualenv==13.1.2

Afterwards you can run bench setup lets-encrypt site-name.

It was a newbie error. In my aws control panel I had not set up the 443 port. Thank you all.