error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Пытаюсь получить контент по урл-у https://belturizm.by/. Появляется ошибка
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number in /var/www/file.php on line 22
Мой код
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$content_data_temp = file_get_contents($url, false, stream_context_create($arrContextOptions));
Я уже пробовал и код в CURL, но ошибка всегда одна. Что можно или нужно донастроить? На сервере UBUNTU. Ошибка появилась после смены хостинга.
PHPInfo вот что выдает:
cURL support enabled
cURL Information 7.58.0
SSL Yes
SSPI No
TLS-SRP Yes
HTTP2 Yes
GSSAPI Yes
KERBEROS5 Yes
UNIX_SOCKETS Yes
PSL Yes
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, smb, smbs, smtp, smtps, telnet, tftp
Host x86_64-pc-linux-gnu
SSL Version OpenSSL/1.1.1
ZLib Version 1.2.11
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.1.1 11 Sep 2018
OpenSSL Header Version OpenSSL 1.1.1 11 Sep 2018
Openssl default config /usr/lib/ssl/openssl.cnf
Directive Local Value Master Value
openssl.cafile no value no value
openssl.capath no value no value