If you have a default domain already configured with NGINX, the easiest way to renew manually a domain is to temporarily disable your custom domain and then use certbot-auto
renew the certificate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOMAIN=www.yourdomain.com | |
sudo rm /etc/nginx/sites-enabled/$DOMAIN | |
sudo service nginx reload | |
sudo certbot-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d $DOMAIN | |
sudo ln -s /etc/nginx/sites-available/$DOMAIN /etc/nginx/sites-enabled/$DOMAIN | |
sudo service nginx reload |