excelwebzone / EWZRecaptchaBundle

This bundle provides easy reCAPTCHA form field for Symfony.
MIT License
395 stars 160 forks source link

SSL operation failed with code 1 #221

Open picks44 opened 5 years ago

picks44 commented 5 years ago

Hi all,

I successfully implemented this bundle with invisible reCaptcha on a SF3.4 project, but when I submit my form, I get this error

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 vendor\excelwebzone\recaptcha-bundle\src\Extension\ReCaptcha\RequestMethod\Post.php (line 66)

=> return file_get_contents($this->recaptchaVerifyUrl, false, $context);

I tried with and without SSL on my local server (laragon in Windows 10), but it made no changes...

Any clue?

mikemix commented 4 years ago

This doesn't relate to this bundle. This is your server's fault. Probably you haven't configured CA path in the php.ini openssl.cafile setting