Windows 10, Apache httpd 2.4, PHP 7.1.4, Laravel 5.5
Gmail's less secure is Allowed.
My .env file:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=ssl
Error Message:
Connection could not be established with host smtp.gmail.com
MAIL_PORT=587
MAIL_ENCRYPTION=tls
Error Message:
stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
How can I resolve the "certificate verify failed" error?
If your operating system doesn't automatically manage your trusted certificate store:
Download the cURL cacert.pem certificate bundle
Put the cacert.pem bundle somewhere you like; if you have self-signed certificates that need to be accepted, open the bundle in a text editor and add them to the end of the file.
Edit php.ini to reference this file location:
curl.cainfo = D:/Servers/php/sslfiles/cacert.pem
openssl.cafile = D:/Servers/php/sslfiles/cacert.pem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With