Jump to content

Curl Error: Protocol "tls" not supported or disabled in libcurl


Jester

Recommended Posts

Hello Guys,

      Because the old server is already decommissioned, I migrated our WHMCS to the new one. After migration, I encountered an error on the dotph domain module. Based on the test and troubleshooting of WHMCS support, they created a standalone test script that attempts a connection to our after-market registrar endpoint and displays the below error.

The error that's being returned is Curl Error: Protocol "tls" not supported or disabled in libcurl

Testing Connection to 'tls://cocca.dot.ph:700'...
URL resolves to 209.58.186.43

Curl Error: Protocol "tls" not supported or disabled in libcurl

Connection Response (this should be the HTML from tls://cocca.dot.ph:700 when working correctly):

 

In addition, below also is the latest respond from WHMCS support, however they cannot extend their support with this matter.

 "If your environment requires a TLS protocol version to be explicitly specified, it would be necessary to work with the module vendor to adjust their code accordingly.

At present the module code is just specifying tls without a specific protocol version, assuming your environment can auto-negotiate the version in /home/services/public_html/modules/registrars/COCCAepp/Net/EPP/Client.php around line 57:

Our codes below:

function connect($host, $port=700, $timeout=1, $ssl=true, $context=NULL) {
            $target = sprintf('%s://%s:%d', ($ssl === true ? 'tls' : 'tcp'), $host, $port);
            if (is_resource($context)) {
                $result = stream_socket_client($target, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $context);

            } else {
                $result = stream_socket_client($target, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT);
            }
            if ($result === False) {
                throw new Exception("Error connecting to $target: $errstr (code $errno)");

Hope you can help me with this matter and what do I need to adjust on the code.

Thanks in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated