This only applies to existing domains that already have pre-existing certificates from LetsEncrypt.
If you have not noticed, when you are using LetEncrypt SSL certificates - they will only give the first SSL certificate for 3 months. After that, you will need to generate/renew the SSL certificate.
If you are running custom droplets or servers, you might need to use "sudo" command line interface to renew it. This can apply to servers from DigitalOcean.com, Linode, Amazon AWS Machines and UpCloud.
Login to your SSH interface. Switch to
sudo mode if you prefer.
Stop the NGINX or Apache web server, because letencrypt needs to use the port 80 to bind the certificate.
Command (usable on CentOS 7x or similar):
sudo systemctl stop nginx
Once this is done, move on to step 3
Now generate certificate for your existing website. This is why we have used the sub-command
sudo /usr/bin/letsencrypt certonly -d domain.com
Once this is done, you need to start your web server again
sudo systemctl start nginx
Optional: You can find some information from this forum post at DigitalOcean.
Subscribe to Rabin's Hideout
Get the latest posts delivered right to your inbox