php curl ssl error no 35

I couldn't esablish connection with Here is my code:

$curl = $this->curl;
$curl->setOpt(CURLOPT_FOLLOWLOCATION, true);
$curl->setOpt(CURLOPT_SSL_VERIFYHOST, false);
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$curl->setOpt(CURLOPT_SSL_VERIFYSTATUS, false);
if ($curl->error) {
    echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";

And I got this error:

Error: 35: SSL connect error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to

I am using php7 ubuntu with root user.

Please don't use your custom code or you need to post full code here. This code will work:

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "");
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYSTATUS, false);

$result = curl_exec($curl);


<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>İnternet Şöbə v3.1</title>