SSL certificate

An SSL certificate (https) is essential for securing the communication between a website and its users. It encrypts transmitted data, protecting sensitive information from interception. Additionally, it authenticates the website’s identity, ensuring users they are interacting with the legitimate site. SSL certificates also improve search engine rankings, enhancing the website’s visibility and credibility.

Table of contents

  1. Scripts folder
  2. Generate certificate
  3. Renew certificate

The use of SSL certificates is configured for Docker deployment only. Visit ‘Installation with Docker.

Scripts folder

To begin with, we must go to the scripts folder:

cd scripts

Generate certificate

To generate a new certificate, run:

chmod +x ssl_setup.sh
./ssl_setup.sh

Renew certificate

To renew the certificate, execute:

chmod +x ssl_renew.sh
./ssl_renew.sh

The script runs certbot renew, which uses certbot’s default renewal window: a certificate is only renewed when it is within 30 days of expiry. For Let’s Encrypt’s 90-day certificates that means renewal starts at about 60 days of age; running the script earlier does nothing.