Free SSL with Let's Encrypt in DirectAdmin
Let's Encrypt provides free, automated SSL certificates that are trusted by all major browsers. DirectAdmin includes built-in support for Let's Encrypt, making it simple to secure your websites without purchasing a certificate. This guide covers everything you need to know about using Let's Encrypt with DirectAdmin.
What Is Let's Encrypt?
Let's Encrypt is a free, automated, and open certificate authority (CA) that provides Domain Validated (DV) SSL certificates. Key features include:
- Completely free — no cost for certificate issuance or renewal
- Automated — certificates can be issued and renewed automatically
- Trusted — recognized by all major browsers and operating systems
- 90-day validity — shorter than paid certificates, but auto-renewal handles this
- Rate limits — up to 50 certificates per registered domain per week
Tip: Let's Encrypt certificates from {{COMPANY_NAME}} hosting accounts are automatically managed. In most cases, you do not need to do anything manually.
Enabling Let's Encrypt for Your Domain
Method 1: Through SSL Certificates Page
- Log in to your DirectAdmin control panel
- Navigate to Account Manager > SSL Certificates
- Ensure the Secure SSL checkbox is enabled
- Select the option Free & automatic certificate from Let's Encrypt
- Configure the certificate options:
- Certificate Entries: Select which domains and subdomains to include
- At minimum, include your domain.com and www.domain.com
- You can also include mail.domain.com, webmail.domain.com, etc.
- Check Enable Wildcard if you need *.domain.com coverage (requires DNS validation)
- Click Save
DirectAdmin will automatically request and install the certificate. This typically takes less than a minute.
Method 2: Through Domain Setup
- Go to Account Manager > Domain Setup
- Click on your domain name
- Check the Secure SSL option
- Select Let's Encrypt as the SSL type
- Choose the subdomains to include
- Click Save
Understanding Certificate Coverage
Standard Let's Encrypt Certificate
A standard Let's Encrypt certificate covers specific hostnames:
- example.com
- www.example.com
- mail.example.com (if selected)
- Additional subdomains you specify
Each hostname is listed as a Subject Alternative Name (SAN) on the certificate.
Wildcard Let's Encrypt Certificate
A wildcard certificate covers all subdomains under your domain:
- *.example.com (covers any subdomain)
- example.com (the base domain)
Important: Wildcard certificates require DNS validation instead of HTTP validation. This means your domain's DNS must be managed through DirectAdmin or a supported DNS provider, or you must manually add TXT records.
Automatic Renewal
Let's Encrypt certificates are valid for 90 days. DirectAdmin handles renewal automatically:
- Renewal check runs daily on the server
- Certificates are renewed approximately 30 days before expiration
- No action is required from you for renewal
- The renewal process is seamless with no downtime
You can verify your certificate's expiration date:
- Go to Account Manager > SSL Certificates
- View the certificate details showing the "Not After" date
- Or click the padlock in your browser to see expiration details
Forcing HTTPS After Installation
Once Let's Encrypt is active, redirect all HTTP traffic to HTTPS:
- In DirectAdmin, go to Account Manager > SSL Certificates
- Enable Force SSL with https redirect
- Click Save
Alternatively, add to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]Troubleshooting Let's Encrypt Issues
Certificate Issuance Failed
If Let's Encrypt fails to issue a certificate, check:
- DNS Resolution: Your domain's A record must point to your hosting server's IP address. Let's Encrypt validates domain ownership by connecting to your server.
- Proxy/CDN Interference: If using Cloudflare or another proxy, temporarily set DNS to "DNS Only" mode (disable the proxy), issue the certificate, then re-enable the proxy.
- Firewall or .htaccess Blocking: The validation process accesses a file at
http://yourdomain.com/.well-known/acme-challenge/. Ensure this path is not blocked by firewall rules or .htaccess restrictions.
- Rate Limits: Let's Encrypt has rate limits. If you have requested too many certificates recently, you may need to wait before trying again. The limit is 50 certificates per registered domain per week.
- Document Root: Ensure your domain has a valid, accessible document root directory.
Certificate Not Renewing Automatically
If your certificate is approaching expiration without renewal:
- Manually trigger a renewal from the SSL Certificates page
- Check if DNS still points to the correct server IP
- Verify that .well-known/acme-challenge is accessible
- Review DirectAdmin error logs for renewal failures
- Contact {{SUPPORT_EMAIL}} if the problem persists
Mixed Content Warnings
After enabling SSL, mixed content warnings may appear:
- Update all internal URLs from http:// to https://
- Check your CMS configuration (WordPress Settings > General)
- Look for hardcoded HTTP URLs in themes and plugins
- Use browser developer tools to identify mixed content sources
Let's Encrypt vs. Paid SSL Certificates
| Feature | Let's Encrypt | Paid SSL |
|---|---|---|
| Cost | Free | Varies |
| Validation | Domain (DV) | DV, OV, EV |
| Validity | 90 days | 1 year |
| Auto-Renewal | Yes | Manual |
| Wildcard | Yes (DNS validation) | Yes |
| Warranty | None | Up to $1.75M |
| Organization Display | No | Yes (OV/EV) |
| Support | Community | Vendor support |
Best Practices
- Let auto-renewal handle things — do not manually delete or reinstall unless troubleshooting
- Include all subdomains — add www, mail, and other subdomains when issuing the certificate
- Monitor expiration — even though renewal is automatic, periodically verify certificates are current
- Use Force SSL — always redirect HTTP to HTTPS for complete security
- Update application URLs — ensure your CMS and applications use https:// URLs
- Keep DNS stable — DNS changes can break Let's Encrypt validation and renewal
Related Articles
- How to Install an SSL Certificate in DirectAdmin
- Understanding SSL Certificate Types
- Troubleshooting SSL Certificate Errors
For assistance with Let's Encrypt or any SSL-related issues, contact our support team at {{SUPPORT_EMAIL}} or visit {{SUPPORT_URL}}. We are here to help you keep your website secure.