Docs Home Return to Homepage
Get Started Login

How to Get a Free SSL Certificate and Force HTTPS in DirectAdmin

Last updated Changelog

On this page

A free SSL certificate from Let’s Encrypt puts the padlock and https:// on your website. DirectAdmin issues and renews these for you, and normally does it automatically within 24 hours of adding a domain. This guide shows how to check your certificate, issue it straight away if it’s still waiting, and force visitors onto the secure version of your site.

Issue your certificate

  1. Log in to DirectAdmin. In the Account Manager section, click SSL/TLS Certificates.

    The DirectAdmin dashboard with SSL/TLS Certificates highlighted under Account Manager

  2. If your domain doesn’t have a certificate yet, the Certificate list says “No certificates found” and your domain is listed under DNS names without TLS certificate.

    The DNS names without TLS certificate section highlighted, listing directadmin.cranedemo.com

  3. Under Automatic certificate provisioning, you’ll see “New certificates are waiting to be provisioned”, with the names it will cover. That includes a wildcard (*.yourdomain.com), which covers every subdomain. Click Provision Now rather than waiting.

    The waiting-to-be-provisioned notice and the Provision Now button highlighted

  4. Click Confirm.

    The Issue certificates now box with Confirm highlighted

  5. DirectAdmin starts issuing the certificate: “Automatic certificate provisioning is in progress”. Leave it a few minutes. Ours took about five.

    The page showing that automatic certificate provisioning is in progress

  6. Refresh the page. Your certificate now appears in the Certificate list as Valid, with Renewal mode: Automatic, and the notice says all DNS names have valid certificates.

    The Certificate list showing directadmin.cranedemo.com and *.directadmin.cranedemo.com as Valid, renewing automatically

Note: Your domain must point at your NameCrane hosting, using our nameservers, before a certificate can be issued. If it fails, the Provisioning history tab shows each attempt and why.

Force HTTPS

  1. Go to Domains in the Account Manager section, and click your domain’s name.

    The Domains list with directadmin.cranedemo.com highlighted

  2. Under SSL, tick Force SSL with https redirect, then click Modify.

    Force SSL with https redirect ticked and the Modify button highlighted

  3. DirectAdmin saves the change. Within a minute or two, http:// addresses are redirected to https://.

    The Modify Domain page after saving

Warning: Leave HSTS off unless you’re sure every subdomain has a working certificate. Once browsers have seen it, they’ll refuse to load any part of your site without SSL.

Troubleshooting

Problem What to do
Provisioning failed Open Provisioning history and click View for the reason. Usually the domain doesn’t point at us yet. Fix the DNS, then try Provision Now again.
The browser still says “Not secure” Clear your browser cache. If your site loads images or scripts over http://, update those links (for WordPress, update the site address under Settings › General).
I need a certificate I bought elsewhere See Install a custom SSL certificate.
The site loops between pages after forcing HTTPS Untick Force SSL with https redirect, and check your site or .htaccess doesn’t add its own redirect too.

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.