{"id":1000056040,"date":"2023-12-21T11:16:10","date_gmt":"2023-12-21T05:46:10","guid":{"rendered":"https:\/\/googiehost.com\/blog\/?p=1000056040"},"modified":"2026-04-26T17:08:15","modified_gmt":"2026-04-26T11:38:15","slug":"install-ssl-certificate-directadmin","status":"publish","type":"post","link":"https:\/\/googiehost.com\/blog\/install-ssl-certificate-directadmin\/","title":{"rendered":"How to Install an SSL Certificate in DirectAdmin | SSL Let\u2019s encrypt"},"content":{"rendered":"\n<p><strong><em>How to Install an SSL Certificate in DirectAdmin SSL Letsencrypt:<\/em><\/strong>&nbsp;SSL certificate is mandatory to set to the Direct Admin control panel to access the control panel insecure way.<\/p>\n \n<p>so SSL certificate has to be installed on the hostname of the server.<\/p>\n \n<p>Free and a valid SSL certificate is issued by&nbsp;<strong>Let\u2019s Encrypt.<\/strong><\/p>\n \n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"how-to-install-an-ssl-certificate-in-directadmin\">How to Install an SSL Certificate in DirectAdmin?<\/h2>\n \n<p>SSH to the server and type below command:<\/p>\n \n<pre class=\"wp-block-code\"><code># cd \/usr\/local\/directadmin\/scripts #.\/letsencrypt.sh request_single server.rajesh.com 4096 \uf0e0 server.rajesh.com is the hostname\nSetting up certificate for a hostname: server.rajesh.com\nGenerating 4096 bit RSA key for let's encrypt account...\nopenssl genrsa 4096 &gt; \"\/usr\/local\/directadmin\/conf\/letsencrypt.key\"\nGenerating RSA private key, 4096 bit long modulus................................................................................................................................++.........................................................................................................................++\ne is 65537 (0x10001)<\/code><\/pre>\n \n<p>Account has been registered.<\/p>\n \n<p>Requesting a new certificate order\u2026<\/p>\n \n<p>Processing authorization for server.rajesh.com\u2026<\/p>\n \n<p>Waiting for&nbsp;<strong>domain<\/strong>&nbsp;verification\u2026<\/p>\n \n<p>Trying again\u2026<\/p>\n \n<p><strong>1..2..3..4..5..<\/strong><\/p>\n \n<pre class=\"wp-block-code\"><code>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 &#91;69.172.201.153]: \\\"\\u003c!DOCTYPE HTML PUBLIC \\\\\\\"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\\\\\\\"\n\\\\\\\"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\\\\\\\"\\u003e\\\\n\\u003chtml\\u003e\\\\n\\u003chead\\u003e\\\\n\\\nu003cmeta http-equiv=\\\\\\\"Conte\\\"\", \"status\": 403. Exiting...<\/code><\/pre>\n \n<p>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.<\/p>\n \n<pre class=\"wp-block-code\"><code># cd \/usr\/local\/directadmin\n#.\/directadmin set ssl 1\n#.\/directadmin set carootcert \/usr\/local\/directadmin\/conf\/carootcert.pem\n#.\/directadmin set ssl_redirect_host your.hostname.com\n# service directadmin restart<\/code><\/pre>\n \n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"change-direct-admin-skin-theme-easy-to-change-%e2%9a%a1%ef%b8%8f\"><strong>Change Direct Admin skin\/theme | Easy to change \u26a1\ufe0f<\/strong><\/h3>\n \n<p><em>Follow these simple steps to change the DirectAdmin skin\/theme DirectAdmin Skin.<\/em><\/p>\n \n<h2 class=\"wp-block-heading\" id=\"install-lets-encrypt-certificate-for-the-domain\">Install Let\u2019s Encrypt certificate for the domain<\/h2>\n \n<p>A further SSL certificate can be installed on the domains hosted on the server for secure connection to the website.<\/p>\n \n<p><strong>To install SSL certificate on a Domain<\/strong><\/p>\n \n<ul class=\"wp-block-list is-style-checked\">\n<li>Login to Direct Admin <a href=\"https:\/\/googiehost.com\/blog\/direct-admin-control-panel-setup\/\" target=\"_blank\" rel=\"noreferrer noopener\">control panel<\/a> as Admin.<\/li>\n \n<li>Switch to User Access Level.<\/li>\n \n<li>Navigate to Account Manager > SSL Certificates<\/li>\n<\/ul>\n \n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-Lets-Encrypt-certificate-for-the-domain.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"531\" src=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-Lets-Encrypt-certificate-for-the-domain.png\" alt=\"Install Let\u2019s Encrypt certificate for the domain\" class=\"wp-image-1000074411\" title=\"\" srcset=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-Lets-Encrypt-certificate-for-the-domain.png 1024w, https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-Lets-Encrypt-certificate-for-the-domain-300x156.png 300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n \n<ul class=\"wp-block-list is-style-checked\">\n<li>Select the option Free &#038; automatic certificate from Let\u2019s Encrypt<\/li>\n<\/ul>\n \n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Select-the-option-Free-automatic-certificate-from-Lets-Encrypt.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Select-the-option-Free-automatic-certificate-from-Lets-Encrypt.png\" alt=\"Select the option Free &amp; automatic certificate from Let\u2019s Encrypt\" class=\"wp-image-1000074412\" title=\"\" srcset=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Select-the-option-Free-automatic-certificate-from-Lets-Encrypt.png 1024w, https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Select-the-option-Free-automatic-certificate-from-Lets-Encrypt-300x159.png 300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n \n<ul class=\"wp-block-list is-style-checked\">\n<li>Check the domain name is correct.<\/li>\n \n<li>Select the certificate key size.<\/li>\n \n<li>Select the subdomains to install the SSL certificate<\/li>\n<\/ul>\n \n<p>Or<\/p>\n \n<ul class=\"wp-block-list is-style-checked\">\n<li>Check Wildcard to create a wildcard SSL certificate.<\/li>\n \n<li>Click \u201c<strong>Save<\/strong>\u201d button to<strong>\u00a0install the SSL Certificate by Let\u2019s Encrypt<\/strong><\/li>\n<\/ul>\n \n<p>Certificate and Key are saved&nbsp;<strong><em>successfully and installed<\/em><\/strong><\/p>\n \n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"free-ssl-vs-paid-ssl\">Free SSL vs Paid SSL<\/h3>\n \n<p><em>I am going to bust the myths and explain the differences between<strong>&nbsp;<a href=\"https:\/\/googiehost.com\/blog\/free-ssl-vs-paid-ssl\/\" target=\"_blank\" rel=\"noreferrer noopener\">Free SSL vs Paid SSL certificate<\/a><\/strong>. web hosting companies are bundling a <a href=\"https:\/\/googiehost.com\/blog\/free-ssl-certificate-with-free-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">free SSL certificate<\/a>.<\/em><\/p>\n \n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-SSL-Certificate-in-DirectAdmin.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"548\" src=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-SSL-Certificate-in-DirectAdmin.png\" alt=\"Install SSL Certificate in DirectAdmin\" class=\"wp-image-1000074413\" title=\"\" srcset=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-SSL-Certificate-in-DirectAdmin.png 1024w, https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Install-SSL-Certificate-in-DirectAdmin-300x161.png 300w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n \n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"how-to-renew-your-digital-certificate-in-directadmin\">How to renew your digital certificate in DirectAdmin<\/h2>\n \n<p><strong>Let\u2019s Encrypt SSL<\/strong>&nbsp;<strong>certificate<\/strong>&nbsp;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<\/p>\n \n<pre class=\"wp-block-code\"><code># cd \/usr\/local\/directadmin\/scripts\n#.\/letsencrypt.sh renew mydomain.com 4096 \/path\/to website<\/code><\/pre>\n \n<h3 class=\"wp-block-heading\" id=\"ssl-renewal-after-migration\"><strong>SSL Renewal after Migration<\/strong><\/h3>\n \n<p>If the domain is migrated from <a href=\"https:\/\/googiehost.com\/blog\/install-nginx-litespeed-direct-admin\/\" target=\"_blank\" rel=\"noreferrer noopener\">cPanel to Direct Admin<\/a>,&nbsp;<strong>copy all crt<\/strong>, key file to the DirectAdmin server, and configure directadmin.conf with copied SSL certificates.<\/p>\n \n<p>Further, if the certificates are found to be invalid or expired,&nbsp;<strong>Direct Admin control panel<\/strong>&nbsp;has the option to replace invalid certificates with a valid Let\u2019s Encrypt certificate.<\/p>\n \n<ul class=\"wp-block-list is-style-checked\">\n<li><strong>Login to Direct Admin<\/strong>\u00a0control panel as Admin.<\/li>\n \n<li>Navigate to\u00a0<strong>Account manager > SSL Management > Settings<\/strong><\/li>\n \n<li>Check the option \u201c<strong>Replace expired\/invalid certificates with a valid Let\u2019s Encrypt certificate one<\/strong>\u201d and click Update.<\/li>\n<\/ul>\n \n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Renew-ssl-certificates-Lets-Encrypt-with-directadmin.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Renew-ssl-certificates-Lets-Encrypt-with-directadmin.png\" alt=\"Renew ssl certificates Let&#039;s Encrypt with directadmin\" class=\"wp-image-1000074414\" title=\"\" srcset=\"https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Renew-ssl-certificates-Lets-Encrypt-with-directadmin.png 1024w, https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Renew-ssl-certificates-Lets-Encrypt-with-directadmin-300x150.png 300w, https:\/\/googiehost.com\/blog\/wp-content\/uploads\/2023\/03\/Renew-ssl-certificates-Lets-Encrypt-with-directadmin-768x384.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n \n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"faqs\">FAQs<\/h2>\n \n<div id=\"acf-accordion-block_58d1c5e65915d6b5d6e09776e994dd58\" class=\"acf-accordion\">\n                <details class=\"acf-accordion-item\" open>\n                <summary class=\"acf-accordion-title\">\n                    How do I install an SSL certificate in DirectAdmin?                <\/summary>\n                <div class=\"acf-accordion-content\">\n                    <p>Log into DirectAdmin as Admin, switch to User Access Level, navigate to Account Manager &gt; SSL Certificates, select the free Let\u2019s Encrypt option, verify your domain name and key size, then click Save to install the certificate.<\/p>\n                <\/div>\n            <\/details>\n                        <details class=\"acf-accordion-item\">\n                <summary class=\"acf-accordion-title\">\n                    Does Let\u2019s Encrypt SSL auto-renew in DirectAdmin?                <\/summary>\n                <div class=\"acf-accordion-content\">\n                    <p>Yes, Let\u2019s Encrypt SSL certificates are set to auto-renew within a 90-day cycle by default in DirectAdmin. If auto-renewal fails, you can manually renew using the letsencrypt.sh script from the command line.<\/p>\n                <\/div>\n            <\/details>\n                        <details class=\"acf-accordion-item\">\n                <summary class=\"acf-accordion-title\">\n                    How do I enable HTTPS redirect in DirectAdmin?                <\/summary>\n                <div class=\"acf-accordion-content\">\n                    <p>After installing the SSL certificate, enable HTTPS by running: directadmin set ssl 1, then set ssl_redirect_host to your hostname, and restart DirectAdmin. This forces all traffic through the secure HTTPS connection.<\/p>\n                <\/div>\n            <\/details>\n                        <details class=\"acf-accordion-item\">\n                <summary class=\"acf-accordion-title\">\n                    Can I install a wildcard SSL certificate in DirectAdmin?                <\/summary>\n                <div class=\"acf-accordion-content\">\n                    <p>Yes, DirectAdmin supports wildcard SSL certificates through Let\u2019s Encrypt. In the SSL Certificates section, check the Wildcard option instead of selecting individual subdomains, then click Save to generate the wildcard certificate.<\/p>\n                <\/div>\n            <\/details>\n                        <details class=\"acf-accordion-item\">\n                <summary class=\"acf-accordion-title\">\n                    What should I do if SSL installation fails with an authorization error?                <\/summary>\n                <div class=\"acf-accordion-content\">\n                    <p>Authorization errors usually mean your domain DNS isn&#8217;t pointing to the server correctly. Verify your A records point to the correct server IP, ensure port 80 is open for the HTTP-01 challenge, and check that no firewall or proxy is blocking the.well-known\/acme-challenge path.<\/p>\n                <\/div>\n            <\/details>\n            <\/div>\n\n    <script type=\"application\/ld+json\">\n        {\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"How do I install an SSL certificate in DirectAdmin?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Log into DirectAdmin as Admin, switch to User Access Level, navigate to Account Manager > SSL Certificates, select the free Let\u2019s Encrypt option, verify your domain name and key size, then click Save to install the certificate.\"}},{\"@type\":\"Question\",\"name\":\"Does Let\u2019s Encrypt SSL auto-renew in DirectAdmin?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, Let\u2019s Encrypt SSL certificates are set to auto-renew within a 90-day cycle by default in DirectAdmin. If auto-renewal fails, you can manually renew using the letsencrypt.sh script from the command line.\"}},{\"@type\":\"Question\",\"name\":\"How do I enable HTTPS redirect in DirectAdmin?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"After installing the SSL certificate, enable HTTPS by running: directadmin set ssl 1, then set ssl_redirect_host to your hostname, and restart DirectAdmin. This forces all traffic through the secure HTTPS connection.\"}},{\"@type\":\"Question\",\"name\":\"Can I install a wildcard SSL certificate in DirectAdmin?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, DirectAdmin supports wildcard SSL certificates through Let\u2019s Encrypt. In the SSL Certificates section, check the Wildcard option instead of selecting individual subdomains, then click Save to generate the wildcard certificate.\"}},{\"@type\":\"Question\",\"name\":\"What should I do if SSL installation fails with an authorization error?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Authorization errors usually mean your domain DNS isn't pointing to the server correctly. Verify your A records point to the correct server IP, ensure port 80 is open for the HTTP-01 challenge, and check that no firewall or proxy is blocking the.well-known\/acme-challenge path.\"}}]}    <\/script>\n \n<p>I hope you will understand to Install an <a href=\"https:\/\/googiehost.com\/blog\/install-ssl-certificate-directadmin\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSL Certificate<\/a> in DirectAdmin if you\u2019re facing any error please do comment in the comment section,<\/p>\n \n<p>our hosting expert will revert you back.<\/p>\n ","protected":false},"excerpt":{"rendered":"<p>How to Install an SSL Certificate in DirectAdmin SSL Letsencrypt:&nbsp;SSL certificate is mandatory to set to the Direct Admin control&#8230;<\/p>\n","protected":false},"author":46,"featured_media":1000056161,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"iawp_total_views":41,"footnotes":""},"categories":[5],"tags":[7772,7773,7774],"class_list":["post-1000056040","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","tag-install-an-ssl-certificate-in-directadmin","tag-install-ssl-certificate-directadmin","tag-ssl-certificate-in-directadmin"],"acf":[],"_links":{"self":[{"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/posts\/1000056040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/comments?post=1000056040"}],"version-history":[{"count":1,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/posts\/1000056040\/revisions"}],"predecessor-version":[{"id":1000110009,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/posts\/1000056040\/revisions\/1000110009"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/media\/1000056161"}],"wp:attachment":[{"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/media?parent=1000056040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/categories?post=1000056040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/googiehost.com\/blog\/wp-json\/wp\/v2\/tags?post=1000056040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}