Serving your application over HTTPS is essential for security, user trust, and search engine rankings. When using a load balancer, SSL/TLS is typically handled at the load balancer level through a process called SSL termination. This approach simplifies certificate management and reduces the processing load on your backend servers.
This guide explains how to configure SSL on your Data Mammoth load balancer, including certificate options, setup steps, and best practices.
What Is SSL Termination?
SSL termination (also called TLS termination) means the load balancer handles the encryption and decryption of HTTPS traffic. Here is the flow:
Benefits of SSL Termination at the Load Balancer
- Simplified certificate management. Install and manage certificates in one place (the load balancer) instead of on every backend server.
- Reduced backend server load. Encryption and decryption are CPU-intensive operations. Offloading them to the load balancer frees your backend servers to focus on serving your application.
- Easier certificate renewal. Update or renew certificates on the load balancer without touching any backend servers.
- Consistent HTTPS. All traffic to users is encrypted regardless of backend server configuration.
SSL Certificate Options
Option 1: Let's Encrypt (Free, Automated)
Let's Encrypt provides free, automated SSL certificates. If your Data Mammoth load balancer supports automatic Let's Encrypt integration:
This is the simplest option and is recommended for most users.
Option 2: Upload Your Own Certificate
If you have a certificate from a commercial certificate authority (CA) or need specific certificate features (wildcard, extended validation), you can upload it manually:
You will need:
- Certificate file (.crt or .pem) — Your SSL certificate.
- Private key file (.key) — The private key used to generate the certificate signing request.
- Certificate chain (.ca-bundle or intermediate certificate) — The chain of trust linking your certificate to the root CA.
Option 3: Wildcard Certificate
A wildcard certificate (e.g., *.yourdomain.com) covers all subdomains under a single domain. This is useful if your load balancer serves multiple subdomains:
www.yourdomain.comapi.yourdomain.comapp.yourdomain.com
Step 1 — Add Your Domain to DNS
Before configuring SSL, your domain must point to the load balancer:
203.0.113.100).Verify the DNS record by checking if your domain resolves to the load balancer's IP.
Step 2 — Configure HTTPS on the Load Balancer
Using Automatic Certificate (Let's Encrypt)
| Setting | Value |
|---|---|
| Frontend Protocol | HTTPS |
| Frontend Port | 443 |
| Backend Protocol | HTTP |
| Backend Port | 80 |
| SSL Certificate | Auto (Let's Encrypt) |
| Domain | yourdomain.com |
The load balancer will automatically obtain a certificate from Let's Encrypt. This may take a minute or two.
Using a Custom Certificate
| Setting | Value |
|---|---|
| Frontend Protocol | HTTPS |
| Frontend Port | 443 |
| Backend Protocol | HTTP |
| Backend Port | 80 |
| SSL Certificate | yourdomain.com 2026 |
Step 3 — Redirect HTTP to HTTPS
To ensure all traffic uses HTTPS, configure HTTP-to-HTTPS redirection:
Method 1: Load Balancer Redirect Rule
If your Data Mammoth load balancer supports redirect rules:
Method 2: Backend Server Redirect
If the load balancer does not support redirect rules, configure your backend web servers to redirect HTTP to HTTPS. The web server detects unencrypted requests and sends a 301 redirect to the HTTPS URL.
Step 4 — Verify SSL Configuration
After setup, verify that HTTPS is working:
https://yourdomain.com and check for the lock icon in the browser address bar.Configuring TLS Settings
Minimum TLS Version
Configure the minimum TLS version your load balancer accepts. Recommended settings:
- TLS 1.2 — The minimum recommended version. Disabling TLS 1.0 and 1.1 protects against known vulnerabilities.
- TLS 1.3 — The latest version with improved security and performance. If your users all have modern browsers, you can set TLS 1.3 as the minimum.
Cipher Suites
Cipher suites determine which encryption algorithms are used for HTTPS connections. Most load balancers provide a default cipher suite configuration that is secure and compatible with the majority of clients. Unless you have specific compliance requirements, the default configuration is typically sufficient.
Backend Communication
HTTP Backend (Recommended for Most Cases)
With SSL termination, backend communication is unencrypted (HTTP). This is secure when:
- The load balancer and backend servers are in the same data center.
- Communication happens over a private network.
- No sensitive data needs protection in transit within your infrastructure.
HTTPS Backend (End-to-End Encryption)
For maximum security (or compliance requirements), you can configure the load balancer to forward traffic to backends using HTTPS:
| Setting | Value |
|---|---|
| Frontend Protocol | HTTPS |
| Frontend Port | 443 |
| Backend Protocol | HTTPS |
| Backend Port | 443 |
Certificate Renewal
Automatic Renewal (Let's Encrypt)
Let's Encrypt certificates expire after 90 days. If your load balancer handles Let's Encrypt automatically, renewal happens seamlessly before expiration.
Manual Renewal
For custom certificates, monitor expiration dates and renew before they expire:
Set a calendar reminder 30 days before expiration to begin the renewal process.
What to Do Next
- How to Set Up a Load Balancer — Complete load balancer setup guide.
- Configuring Health Checks — Ensure backend availability.
- Load Balancing Algorithms Explained — Optimize traffic distribution.
- Cloud Firewall Best Practices — Secure your load-balanced infrastructure.