Configuring letsencrypt certificate
Introduction
Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. It is a service provided by the Internet Security Research Group (ISRG). This tutorial provides you how to configure letsencrypt certificate to use in Telcobridges equipment's.
Prerequisites
Make sure HTTPS is enabled for the HTTP default service at port 12358.
Configuration Procedure
Note that the below procedure will survive a toolpack upgrade without breaking HTTPS.
1. Install certbot and python3
2. Create certificate
If unsure, you can temporarily generate a test certificate with --test-cert. Replace the two -d with proper FQDNs, then run:
(the toolpack web server will automatically reload to use the new certificate, thanks to the --deploy-hook)
3. Validation
Validate that a symbolic link is present here:
It should point at /etc/letsencrypt/live/FQDN/fullchain_with_privkey.pem
If successful, you can access in HTTPS without any warning from the browser!
4. Setup automatic renewal The certificate is valid for 90 days, so we have to enable automatic renewal.
Add the following lines in /etc/crontab:
After a few days, validate there are log files created at 1 AM every day:
Last updated
Was this helpful?