Curl Error Certificate


#1

Hi all. I have a problem.
My domain located at cloudflare and i try to send curl request for example:

curl_setopt_array($curl, array(
		  CURLOPT_URL => $url,
		  CURLOPT_RETURNTRANSFER => true,
		  CURLOPT_POST => true,
		  CURLOPT_POSTFIELDS => $data,
		  CURLOPT_SSL_VERIFYHOST => 0,
		  CURLOPT_SSL_VERIFYPEER => 0,
		  CURLOPT_HTTPHEADER => array(
		    "Cache-Control: no-cache"
		  )
		));

I have error: SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

I have latest version Curl 7.5+, php 7+ , openssl 1.0+, also i tried CURLOPT_SSLVERSION => (from 1 to 6) , but it is didn`t get the result. All rime same error(

At the cloudflare i tried change TLS 1 to 2 to 3 it is didn`t work too!

if i use this code with another one site which located in other place it is work!


#2

TLS 1.1 is a good setting.

Does your website work with a regular browser?


#3

Site is working fine with any configuration TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3 it doesn’t matter. But if i send Curl request i have a problem


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.