Php7 SSL operation failed with code 1

good friends,
I'm using php 7 when running this php:

<? php
$ response = ("http://ovoo.spagreen.net/scrapper/v20/get_movie_json/0a048a7c-8ee7-4b1c-a7ed-53085aa83f4a/528085",
               false, stream_context_create ($ stream_opts));
 ?>

I'm getting this error:

Warning: file_get_contents (): SSL operation failed with code 1. OpenSSL Error messages: error: 1409442E: SSL routines: ssl3_read_bytes: tlsv1 alert protocol version in /srv/www/info.php on line 7

I have installed php7-mod-openssl 7.2.33-1
Someone can help me??

The link in question redirects to using HTTPS, and the server doesn't support TLS 1.0/1.1. I think that's the reason for the " tlsv1 alert protocol version" message. You need to make sure you have a version of OpenSSL (or other crypto library) that can use TLS 1.2/1.3. But I think it's more likely the way you're trying to scrape the file in question.

1 Like

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