How to create a new Letsencrypt certificate for Ghost

DigitalOcean has a 1-Click app for Ghost created by the Ghost team. As part of the app, the system requests a new Letsencrypt SSL certificate.

These certificates are renewed automatically every three months via cron.

However, occationally the cron job fails and a new certificate needs to be created and installed for Ghost. The process is fairly simple

First, run the command sudo /etc/letsencrypt”/acme.sh –upgrade –home “/etc/letsencrypt” which updates letsencrypt on the system.

Second, run the command sudo /etc/letsencrypt”/acme.sh –cron –home “/etc/letsencrypt” > /dev/null which then updates the certificate from Letsencrypt and installs it in the correct place for Nginx and Ghost.

Wait 30 seconds and then refresh the Ghost blog and you should have a fresh Letsencrypt SSL certificate

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s