Install SSL certificate in DirectAdmin
An SSL certificate secures the connection between your website and visitors. In this guide, we explain how to install SSL in DirectAdmin.
Why SSL is important
SSL (Secure Sockets Layer) encrypts data between browser and server. Benefits:
- Security: Data cannot be intercepted
- Trust: Green padlock in browser
- SEO: Google prefers HTTPS sites
- Required: Many features only work with HTTPS
HTTP vs HTTPS
| Aspect | HTTP | HTTPS |
|---|---|---|
| Encryption | No | Yes |
| Browser | "Not secure" | Green padlock |
| SEO | Lower | Higher |
| Required for | Basic sites | Forms, logins, webshops |
Let's Encrypt SSL (Free)
Let's Encrypt offers free SSL certificates that are automatically renewed.
Step 1: Navigate to SSL Certificates
- Log in to DirectAdmin
- Go to SSL Certificates in the menu
- You'll see SSL options for your domain
Step 2: Activate Let's Encrypt
- Click Free & automatic certificate from Let's Encrypt
- Check your domain (e.g., yoursite.com)
- Also check www.yoursite.com
- Click Save
Step 3: Wait for installation
- The certificate will be installed within a few minutes
- You'll receive a confirmation
- The certificate is automatically renewed every 90 days
Force HTTPS
After SSL installation, you must redirect visitors to HTTPS.
Via .htaccess
Add to your .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Via DirectAdmin
- Go to Domain Setup or Force SSL Redirect
- Enable Force SSL with https redirect
- Click Save
WordPress HTTPS setup
- Go to Settings → General
- Change WordPress Address (URL) to
https:// - Change Site Address (URL) to
https:// - Click Save Changes
Or use a plugin like Really Simple SSL.
Installing custom SSL certificate
For a purchased certificate (e.g., from Comodo, DigiCert):
Step 1: Generate CSR
- Go to SSL Certificates in DirectAdmin
- Click Create a Certificate Request
- Fill in the details:
- Common Name: yoursite.com
- Organization, City, State, Country
- Copy the CSR
Step 2: Request certificate
- Go to your SSL provider
- Paste the CSR
- Verify domain ownership
- Download the certificate
Step 3: Install certificate
- Go to SSL Certificates in DirectAdmin
- Click Paste a pre-generated certificate
- Paste the certificate
- Paste the CA Bundle (intermediate certificates)
- Click Save
Troubleshooting SSL problems
Mixed Content warnings
Your site loads HTTP resources on an HTTPS page.
Solution:
- Find HTTP links in your content
- Replace
http://withhttps://or// - Use a plugin like Better Search Replace
SSL certificate expiring
Let's Encrypt renews automatically. If this fails:
- Check if the website is accessible
- Check if DNS is correct
- Renew manually via DirectAdmin
"Not secure" despite SSL
- Mixed content (see above)
- SSL not active for www or non-www
- Browser cache - try incognito
ERR_SSL_PROTOCOL_ERROR
- Wait 5-10 minutes after installation
- Clear browser cache
- Try different browser
Wildcard SSL
A wildcard certificate (*.yoursite.com) covers all subdomains:
- blog.yoursite.com
- shop.yoursite.com
- etc.
Contact support for wildcard SSL configuration.
Tips
- Always force HTTPS after SSL installation
- Check regularly if SSL is still valid
- Update links to HTTPS in content
- Test with ssllabs.com
Need help?
We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.
0 van 0 vonden dit nuttig