Categories: HostKarle Support

How to Install SSL in DirectAdmin for Free

If you searched for “install ssl directadmin”, the practical process is to point your domain to the hosting account, request a free Let’s Encrypt certificate, and then turn on the HTTPS redirect. The complete process normally takes a few minutes when the domain, www, and any selected mail hostname already resolve to the correct hosting account.

This guide is for a normal domain hosted in DirectAdmin. Replace example.com with your own domain in every example. The exact labels can differ slightly between DirectAdmin skins, but the SSL page and the steps are the same.

What you need

Before opening DirectAdmin, keep these details ready:

  • Access to the DirectAdmin account for your domain.
  • Control of the domain’s DNS records, either at HostKarle or at your domain registrar.
  • The hosting IP address from your hosting welcome email, if you are using an A record.
  • A decision about your main website address: example.com or www.example.com.

HostKarle’s DirectAdmin plans include a free auto-renewing Let’s Encrypt SSL certificate. The certificate is issued only after the certificate authority can confirm that the selected domain names point to your hosting account.

Step 1: Before you start — point the domain

Why this matters: Let’s Encrypt must reach your domain during validation, so an unpointed or mismatched DNS record is the most common reason issuance fails.

  1. Sign in to the panel from the login address supplied with your hosting account. For HostKarle accounts, the panel is at panel.hostkarle.in.
DirectAdmin panel login page for your hosting account
  1. If your domain uses HostKarle nameservers, set them at the registrar to ns1.fastnsdns.com and ns2.fastnsdns.com. If you manage DNS elsewhere, create or update the domain’s A record so it points to the hosting IP shown in your account details.
  1. Check the www hostname. It should resolve to the same website, usually through a www CNAME to the main domain or an A record pointing to the same hosting IP.
  1. If you want to include mail.example.com, make sure that hostname also has a DNS record pointing to the mail service used by the account. Do not select mail just because it appears in the DirectAdmin list; select it when you actually use that hostname for email.
  1. Save the DNS changes and wait until public DNS lookups show the new records. You can check from a terminal with:
dig +short example.com
dig +short www.example.com
dig +short mail.example.com

Success looks like this: the main domain and every hostname you plan to include return the expected hosting destination. If one of them still returns an old IP, an empty result, or a different provider, fix DNS before requesting the certificate.

If you are moving the domain to HostKarle, DirectAdmin hosting in India explains the hosting setup and nameservers.

Step 2: Issue a Let’s Encrypt certificate

Why this matters: the SSL request creates the certificate and private key for the domain names you select, without requiring you to buy or upload a certificate file.

  1. Log in to DirectAdmin and stay at the User Level.
  1. Open SSL Certificates. In some versions, you can reach it from the account dashboard, Account Manager, or Advanced Features.
  1. Choose the option for a free automatic certificate from Let’s Encrypt. Newer DirectAdmin installations may show an ACME provider selector instead; choose Let’s Encrypt if it is available.
  1. Enter or confirm the contact email address requested by the form. Use an address you can access because the hosting system may send certificate or renewal notices there.
  1. Select the main domain, example.com. The main domain must be part of the request even when you plan to use the www version as your public address.
  1. Select the additional hostnames that should use the same certificate. The next step explains how to choose www and mail safely.
  1. Click Save, Request, or the equivalent button shown by your DirectAdmin skin.

Success looks like this: DirectAdmin shows the certificate in the SSL Certificates page, with the requested hostnames listed and an active or valid status. You should then be able to open https://example.com without a certificate warning.

DirectAdmin’s ACME and Let’s Encrypt documentation explains that ACME certificates can be issued and renewed automatically. You do not need to run a server command for a normal user-level request.

Step 3: Include www and mail correctly

Why this matters: a certificate for only example.com does not automatically cover every hostname that visitors or mail apps may use.

On the Let’s Encrypt request page, look for the list of available domain names and subdomains. Select the names that will actually receive HTTPS connections:

HostnameSelect it whenCheck before requesting
example.comIt is your main domainIts DNS record points to this hosting account
www.example.comVisitors may open the www versionwww resolves to the same website
mail.example.comYour mail client uses this hostnamemail resolves to the account’s mail service

For a simple website, select example.com and www.example.com. Add mail.example.com only when your email settings use it. Including a hostname that has no DNS record can make the complete certificate request fail because Let’s Encrypt validates every selected name.

If you later change from mail.example.com to another mail hostname, request a new certificate with the new name. The certificate list in DirectAdmin is the source of truth: confirm that every hostname your users type is present there.

Success looks like this: the certificate details show the main domain plus each selected SAN (subject alternative name), and the browser shows a valid certificate for both the bare domain and www.

Step 4: Force HTTPS

Why this matters: installing a certificate makes HTTPS available, but visitors can still arrive through an old http:// link until you enable the redirect.

  1. In DirectAdmin, open Domain Setup or Domain Management.
  1. Select example.com and open the domain settings. Find Force Redirect, Force SSL with https redirect, or a similarly named setting.
  1. Enable the HTTPS redirect and save it. If DirectAdmin offers a choice between www, non-www, or no host redirect, choose the version you want as the canonical website address.
  1. Use only one canonical host. For example, choose non-www if you want https://example.com and choose www if you want https://www.example.com. The other version should redirect to it.
  1. If you run WordPress, update the WordPress Address and Site Address to use https:// after the certificate works. Also update hard-coded image, stylesheet, and script URLs if the browser reports mixed content.

Success looks like this: opening http://example.com changes to the HTTPS URL, and opening the non-canonical host changes to your chosen canonical HTTPS address. DirectAdmin documents this setting as Force SSL with https redirect in the domain settings and SSL page.

You can also use the panel setting described above instead of adding a redirect rule manually. If you are maintaining an existing rule, our guide to redirecting HTTP to HTTPS with .htaccess covers the alternative approach. Avoid stacking several redirect rules before testing, because that can create a loop.

Step 5: Fix “certificate failed”

Why this matters: the error usually identifies a validation problem with one of the names in the request, not a problem with the certificate itself.

Work through these checks in order.

Check the main domain and www

Run a lookup for every name you selected:

dig +short example.com
dig +short www.example.com

Both results should point to the hosting account. If the records show an old provider, remove the old A record or update the nameservers at the registrar. If you use a DNS proxy, confirm that the public DNS still points to the correct hosting destination and that the web request reaches the account.

Check mail separately

If the request fails after you selected mail.example.com, temporarily remove mail from the request and try again. If the certificate succeeds, the mail hostname is the problem. Create the correct DNS record for mail, wait for it to be visible publicly, and then request a certificate that includes it.

Do not remove a working mail DNS record just to make the website certificate pass. Instead, use the hostname that your email service actually provides and select that name in DirectAdmin.

Check CAA records

A CAA record can restrict which certificate authorities may issue certificates for a domain. Check it with:

dig CAA example.com
dig CAA www.example.com
dig CAA mail.example.com

If a CAA record exists and does not allow letsencrypt.org, update it with the DNS provider or remove it if you do not need that restriction. A CAA record on a subdomain can affect that subdomain separately from the main domain. DirectAdmin’s Let’s Encrypt troubleshooting guide also recommends checking CAA records and looking for DNS SERVFAIL responses.

Check for DNSSEC or nameserver errors

If a DNS lookup returns SERVFAIL, check for invalid DNSSEC at the registrar and make sure the nameservers at the registrar match the DNS service you are editing. A mismatch means you may be changing a zone that is not publicly authoritative.

Do not keep retrying blindly

Fix the hostname that failed, then submit one new request. Repeated requests for the same unresolved domain can run into certificate authority rate limits. If the DNS is correct but the panel still reports an error, save the exact error message and ask the hosting provider to check the DirectAdmin ACME task for your account.

Step 6: Verify the finished setup

Why this matters: a certificate can be valid for one hostname while another hostname or redirect is still misconfigured.

Check each URL that applies to your setup:

  1. Open https://example.com in a private browser window.
  2. Open https://www.example.com and confirm it either loads securely or redirects to your chosen canonical host.
  3. Open https://mail.example.com only if it is a webmail address or web endpoint. Mail apps still need the correct IMAP, POP, SMTP, and encryption settings supplied by the host.
  4. Click the browser’s padlock and confirm that the certificate is valid and lists the hostname you are viewing.
  5. Test the old HTTP URL with:
curl -I http://example.com

The response should show a redirect to an HTTPS URL after Force SSL is enabled. Finally, test a few important pages and submit a form or place a test order if your website has one. Look for mixed-content warnings in the browser console if some assets still load over HTTP.

FAQ

Is SSL free in DirectAdmin?

Yes, DirectAdmin can issue a free certificate through Let’s Encrypt when the hosting provider has enabled ACME for the account. HostKarle DirectAdmin plans include a free auto-renewing Let’s Encrypt SSL, so you can request it from the SSL Certificates page without buying a separate certificate.

Does Let’s Encrypt renew automatically in DirectAdmin?

DirectAdmin supports automatic ACME renewal. Keep the domain’s DNS records working and do not block the validation path; otherwise a future renewal can fail even if the first certificate was issued successfully.

Should I include www and mail in the certificate?

Include www when visitors may use the www address. Include mail only when your email or webmail settings use mail.example.com and that hostname resolves correctly; every selected name is validated separately.

Can I force HTTPS without editing .htaccess?

Yes. Open the domain settings in DirectAdmin and enable Force SSL with https redirect. This is usually the simplest option because DirectAdmin applies the redirect at the webserver level; keep only one main redirect method while testing.

Why does DirectAdmin say the certificate request failed?

The selected domain or subdomain may not point to the hosting account, may return SERVFAIL, or may have a CAA record that does not allow Let’s Encrypt. Check each selected hostname, fix DNS, wait until the change is publicly visible, and then request the certificate again.

Samrat Ghosh

Samrat Ghosh writes hands-on guides about web hosting, WordPress, domains and email for Indian small businesses, students and freelancers - the practical documentation he wishes had existed when he set up his first website.

Share
Published by
Samrat Ghosh

Recent Posts

Zoho Mail Alternatives for Indian Businesses (2026)

Compare zoho mail alternatives for Indian businesses by rupee cost, IMAP access and mailbox limits,…

4 hours ago

Best Wix Alternatives in India for Small Businesses

Compare Wix alternatives for Indian small businesses: see 3-year rupee costs, WordPress hosting, migration limits,…

15 hours ago

Titan Email Price in India: Cost per Mailbox Explained

Titan email price in India explained with mailbox costs, features, team totals and a comparison…

21 hours ago

HostKarle vs Bluehost India: Price, Renewal and Panel

HostKarle vs Bluehost compares Indian shared hosting prices, renewal bills, email, SSL, backups, panels and…

1 day ago

Hindi Blog Kaise Banaye: WordPress Step-by-Step Guide

Learn how to write blog in hindi with WordPress, Hindi typing tools, domain and hosting…

2 days ago

Google Workspace Alternatives in India for Small Teams

Compare Google Workspace alternatives in India by yearly rupee cost, email features and migration effort…

2 days ago

This website uses cookies.