SSL operation failed with code 1 (ReCaptcha)

Username (e.g. epiz_XXX) or Website URL

https://omsistuff.ga/login

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/epizy.com/epiz_25108831/htdocs/php/recaptcha/ReCaptcha/RequestMethod/Post.php on line 80

Warning : file_get_contents(): Failed to enable crypto in /home/vol9_5/epizy.com/epiz_25108831/htdocs/php/recaptcha/ReCaptcha/RequestMethod/Post.php on line 80

Warning : file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: operation failed in /home/vol9_5/epizy.com/epiz_25108831/htdocs/php/recaptcha/ReCaptcha/RequestMethod/Post.php 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