How to renew Spotipo SSL using certbot

If you have used Letsencrypt certificates to enable HTTPS on Spotipo following this article, you will need to renew them every 90 days.

Fortunately renewal is easy, just execute below command

sudo certbot renew

Once its succeeds, restart the nginx

sudo service nginx restart
Problem binding to port 443: Could not bind to IPv4 or IPv6 

If you see an error like above, it's caused by certbot ran in standalone mode.

Such case follow below steps

sudo service nginx stop
sudo certbot renew
sudo service nginx start

How did we do?