Unlimited Hosting, Unmatched Performance
Start at $0.01 Now

How to Install an SSL Certificate in DirectAdmin | SSL Let’s encrypt

3 min read
How to Install an SSL Certificate in DirectAdmin

How to Install an SSL Certificate in DirectAdmin SSL Letsencrypt: SSL certificate is mandatory to set to the Direct Admin control panel to access the control panel insecure way.

Hence SSL certificate has to be installed on the hostname of the server.

Free and a valid SSL certificate is issued by Let’s Encrypt.

How to Install an SSL Certificate in DirectAdmin?

SSH to the server and type below command:

# cd /usr/local/directadmin/scripts # ./letsencrypt.sh request_single server.rajesh.com 4096  server.rajesh.com is the hostname
Setting up certificate for a hostname: server.rajesh.com
Generating 4096 bit RSA key for let's encrypt account...
openssl genrsa 4096 > "/usr/local/directadmin/conf/letsencrypt.key"
Generating RSA private key, 4096 bit long modulus
................................................................................................................................++
.........................................................................................................................++
e is 65537 (0x10001)

Account has been registered.

Requesting a new certificate order…

Processing authorization for server.rajesh.com…

Waiting for domain verification…

Trying again…

1..2..3..4..5..

Challenge status: invalid. Challenge error: "type": "http-01", "status": "invalid", "error": { "type": "urn:ietf:params:acme:error:unauthorized", "detail": "Invalid response from http://server.rajesh.com/.well-known/acme-challenge/8RNbb7b7meoMInPzYbiI6QHThGV6d96Jm4kLpKtHeJE [69.172.201.153]: \"\u003c!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\"
\\\"http://www.w3.org/TR/html4/strict.dtd\\\"\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\
u003cmeta http-equiv=\\\"Conte\"", "status": 403 . Exiting...

This command will install new crt, key, and ca files. Now https redirection should be enabled for the DirectAdmin control panel and also directadmin.conf should be configured with a new certificate and keys with the below commands.

# cd /usr/local/directadmin
# ./directadmin set ssl 1
# ./directadmin set carootcert /usr/local/directadmin/conf/carootcert.pem
# ./directadmin set ssl_redirect_host your.hostname.com
# service directadmin restart

Change Direct Admin skin/theme | Easy to change ⚡️

Follow these simple steps to change the DirectAdmin skin/theme DirectAdmin Skin.

Install Let’s Encrypt certificate for the domain

A further SSL certificate can be installed on the domains hosted on the server for secure connection to the website.

To install SSL certificate on a Domain

  • Login to Direct Admin control panel as Admin.
  • Switch to User Access Level.
  • Navigate to Account Manager > SSL Certificates
Install Let’s Encrypt certificate for the domain
  • Select the option Free & automatic certificate from Let’s Encrypt
Select the option Free & automatic certificate from Let’s Encrypt
  • Check the domain name is correct.
  • Select the certificate key size.
  • Select the subdomains to install the SSL certificate

Or

  • Check Wildcard to create a wildcard SSL certificate.
  • Click “Save” button to install the SSL Certificate by Let’s Encrypt

https://youtube.com/watch?v=57J-cq1BK_Q%3Fstart%3D1

Certificate and Key are saved successfully and installed

Know about Free SSL vs Paid SSL 👉👉

I am going to bust the myths and explain the differences between Free SSL vs Paid SSL certificate. web hosting companies are bundling a free SSL certificate.

Install SSL Certificate in DirectAdmin

How to renew your digital certificate in DirectAdmin

Let’s Encrypt SSL certificate is by default set to auto-renew within 90 days of time span. If auto-renewal is failed, type the below command to renew it automatically

# cd /usr/local/directadmin/scripts
# ./letsencrypt.sh renew mydomain.com 4096 /path/to website

SSL Renewal after Migration

If the domain is migrated from cPanel to Direct Admincopy all crt, key file to the DirectAdmin server, and configure directadmin.conf with copied SSL certificates.

Further, if the certificates are found to be invalid or expired, Direct Admin control panel has the option to replace invalid certificates with a valid Let’s Encrypt certificate.

  • Login to Direct Admin control panel as Admin.
  • Navigate to Account manager > SSL Management > Settings
  • Check the option “Replace expired/invalid certificates with a valid Let’s Encrypt certificate one” and click Update.
Renew ssl certificates Let's Encrypt with directadmin

I hope you will understand to Install an SSL Certificate in DirectAdmin if you’re facing any error please do comment in the comment section,

our hosting expert will revert you back.

Avatar of Mamta Goswami
Mamta Goswami
Meet Mamta Goswami, a trailblazing web-hosting expert since 2021. Passionate about bridging the gender gap in tech, she empowers businesses and individuals with insightful blogs. Her relatable content simplifies complex web hosting concepts, making them accessible to all while inspiring more women to join the industry.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Copy link