Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

DirectAdmin error ‘can’t connect to ssl’

by | May 25, 2021

Wondering how to fix DirectAdmin error ‘can’t connect to ssl’? We can help you.

DirectAdmin is a graphical web-based web hosting control panel designed to administer websites easily.

Here at Bobcares, we often handle requests from our customers to fix similar DirectAdmin errors. Today we will see how our support engineers fix this for our customers as a part of our Server Management Services.

Causes and fixes for DirectAdmin error ‘can’t connect to ssl’

Now we will see some of the common causes for this issue along with their fix.

Users often notice the following error in the Directadmin error log located at “/var/log/directadmin/error.log”.

directadmin error can't connect to ssl

1. HTTP to HTTPS redirection

The “Can’t connect to ssl!” error DirectAdmin, can happen if a client connects to HTTP on the https:2222 port. DirectAdmin does catch this and redirects it to HTTPS.
However, DirectAdmin is only assuming this, and the redirection is a guess.

Upon getting this error, we must ensure to check the logs, as there can be an actual SSL error. For the exact timestamp, we can check the logs in real time, for example, 2021-Jan-31.log.

By doing this we will be able to find the IP that attempts to connect to HTTP. Thus we will be able to let them know to try an HTTPS URL instead.

2. Directadmin update

Often users may end up with this error after a Directadmin update. Following are the steps with which we can fix this issue.

1. DirectAdmin might not be running. We can use the following command to check whether ‘directadmin d’ processes is running:

ps ax |grep -v grep | grep directadmin

2. Firewall blocking port 2222. This can be easily checked by simply running the following command (only on redhat systems):

/sbin/service iptables stop
/sbin/chkconfig iptables off

Then test DirectAdmin again.

Newer operating systems
CentOS 7+ uses a different method of firewall control. We can use the following commands to check this:

systemctl disable firewalld
systemctl stop firewalld

In case if the port is not found open in the firewall we can use the following command to add the port 2222.

firewall-cmd --permanent --zone=public --add-port=2222/tcp

3. We can try running DirectAdmin via the command line using the following commands:

cd /usr/local/directadmin
./directadmin b200

3. CA root certificate not included

This error can also trigger when the CA is not installed for the domains. Generally, while SSL installation, we will paste the certificate and key to the corresponding files using the steps below:

certificate: /usr/local/directadmin/conf/cacert.pem
key: /usr/local/directadmin/conf/cakey.pem

We will then edit the /usr/local/directadmin/conf/directadmin.conf and set SSL=1 (default is 0). This tells DA to load the certificate and key and to use an SSL connection. DirectAdmin needs to be restarted after making the changes.

If we have a CA Root Certificate, we can add it using the following command into the /usr/local/directadmin/conf/directadmin.conf file:

carootcert=/usr/local/directadmin/conf/carootcert.pem

[Need assistance? We can help you]

Conclusion

In short, we saw how our Support Engineers fix DirectAdmin error ‘can’t connect to ssl’ for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

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

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF