sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
sudo certbot certonly --standalone -d YOURDOMAIN -d YOURDOMAIN
sudo certbot renew
3- now check easy-nginx https://github.com/seatrips/easy-nginx
sudo letsencrypt revoke -d example.com --cert-path /etc/letsencrypt/live/examplecom/cert.pem