🔐Adding HTTPS to email message links
Instructions for automating the renewal of your Let's Encrypt certificate are at the end of this document, this is a one-time "set it and forget it" process.
Log into your VPS using SSH on macOS or PuTTY on Windows
*** Note: Use the the real IP address of your VPS above, not 1.2.3.4, this is just a placeholder.
Change directory to your ESP installation:
cd edcom-install
You must be on the latest build for Let's Encrypt to work:
./upgrade.sh
Run this command for each of your ESP tracking domains (email message links) and provide your subdomain and domain as an argument.
./generate_link_certificate.sh link.yourdomain.com
*** Note: Use the the real subdomain and domain of your tracking link above, not link.yourdomain.com, this is just a placeholder. This is the domain in your email messages using http:// currently.
If you've never run this command previously, you must do it now to enable HTTPS:// support.
If you've run this command in a previous step do not run it a second time.
./convert_to_ssl.sh
Restart your ESP:
./restart.sh
Run the following command and when you're asked which editor to use, select nano:
crontab -e

Copy and paste the following into the bottom of the editor, change the placeholder domain to your real tracking link domain, and hit ctrl-x to save:
* * */30 * * cd /root/edcom-install && ./renew_link_certificate.sh link.yourdomain.com > data/logs/certbot.log 2>&1
*** Note: Use the the real subdomain and domain of your tracking link above, not link.yourdomain.com, this is just a placeholder. This is the domain in your email messages using http:// currently.
*** Note: If your ESP is installed somewhere else other than /root/edcom-install you will need to modify that as well.
You're done! Your email links should be secured with https:// going forward.
Last updated
Was this helpful?