Open phantien94 opened 6 years ago
I have the same issue. Did you solve it somehow?
Your system CA certificates are most likely stale. If on linux check for ca-certs or ca-certificates package. Try to update it first.
If that does not work you need to point ini option to a fresh cafile
location:
https://secure.php.net/manual/en/openssl.configuration.php
Take a look at https://github.com/paragonie/certainty It is an easy way to get fresh ca certificates bundle file.
I, personally, prefer to use this script from curl library to obtain latest certificates directly from mozilla during php setup: https://github.com/curl/curl/blob/master/lib/mk-ca-bundle.pl
This component might have a configuration option to provide those explicitly to be set as a stream context, I didn't check.
Thanks for your help!
Unfortunatelly, we could not make it working with updated certificates. So we avoided the problem with other solution.
What was it?
Thanks for your help!
Unfortunatelly, we could not make it working with updated certificates. So we avoided the problem with other solution.
Not sure if this helps, but anyway... I was able to connect to my GMail account after enabling "Less secure applications" on it's settings.
This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/30.
I have a problem when I send mail to client to Reset Password. I using Gmail
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\wamp64\www\zend2112\vendor\zendframework\zend-mail\src\Protocol\Smtp.php on line 216
Here is my function:
Thanks for reading. I try to fix 2 days. Please help !!!