🔐Free Native SSL via Let's Encrypt

circle-info

Before you begin, make sure Port 443 is open and unblocked by any other application, firewall, or SELinux policies on your server.

circle-info

This will enable HTTPS:// for your ESP, and also replace your Transactional SMTP Relay self-signed certificate with a real certificate so TLS will work with all SMTP Relay connecting applications.

circle-check

Log into your VPS using SSH on macOS or PuTTY on Windows .

Change directory to your ESP installation:

cd edcom-install

Run this command and provide your ESP subdomain and domain as an argument.

./generate_letsencrypt_certificate.sh esp.yourdomain.com

*** Note: Use the the real subdomain and domain of your VPS above, not esp.yourdomain.com, this is just a placeholder. This is the domain you use to access your ESP with http:// currently.

Convert your ESP to use HTTPS:// from now on:

./convert_to_ssl.sh

Restart your ESP:

./restart.sh

circle-info

Create an automated cron job that renews your Let's Encrypt certificate every 30 days.

Run the following command and when you're asked which editor to use, select nano:

Copy and paste the following into the bottom of the editor, change the placeholder domain to your real ESP domain, and hit ctrl-x to save:

*** Note: Use the the real subdomain and domain of your VPS above, not esp.yourdomain.com, this is just a placeholder. This is the domain you use to access your ESP with http:// currently.

*** Note: If your ESP is installed somewhere else other than /root/edcom-install you will need to modify that as well.

circle-check

Last updated

Was this helpful?