SSL operation failed with code 1 (ReCaptcha)

Username (e.g. epiz_XXX) or Website URL

Error Message

Warning : file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/vol9_5/ on line 80

Warning : file_get_contents(): Failed to enable crypto in /home/vol9_5/ on line 80

Warning : file_get_contents( failed to open stream: operation failed in /home/vol9_5/ on line 80

Other Information

No additionnal informations

There is a simple fix to this problem:

$opts = stream_context_create(array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false

file_get_contents(URL, false, $opts);

This disables SSL Checking and therefore stops that error from happening.
The error its self is caused by an invalid SSL Cert (Or no Cert) and therefore the server cannot verify the SSL Connection.

Also, you shouldn’t give the option for recaptcha. It defeats the whole point of it.

I use a library to perform this. Thanks for your response, I will try your fix :+1:

It’s work thanks you