To solve this problem is simple, run the following commands;
Code:
$ apt install software-properties-common
$ echo -ne "\n" | add-apt-repository ppa:certbot/certbot
$ apt update && apt -y upgrade
$ apt -y install certbot python3-certbot-nginx
$ certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --must-staple -d YOURDOMAIN.COM --email [email protected] --non-interactive
Change "YOURDOMAIN.COM" to the domains that the script uses, being them;
yourdomain.com
proxy.yourdomain.com
sv1.yourdomain.com