Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ErrorException in StreamBuffer.php line 95: in laravel 5

I transfer my application from Laravel 4 to Laravel 5, in sending email particularly in (reset Password).. I got this error

stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL

Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

but in laravel 4, it works.

like image 241
jle2389 Avatar asked Apr 27 '15 08:04

jle2389


3 Answers

I faced similar problem so I set

MAIL_ENCRYPTION= in .env file.

and it worked fine for me.

like image 146
Mohammad Mudassir Avatar answered Nov 02 '22 04:11

Mohammad Mudassir


This error means that the SSL certificate verification is failing.
A quick fix would be to add to StreamBuffer.php these lines right after the condition:

if (!empty($this->_params['sourceIp']))

$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;
like image 25
Raz Weizman Avatar answered Nov 02 '22 03:11

Raz Weizman


If you are using basically Windows for development this is the common problem.

Changing your mail driver to "mail" from "smtp" will help.

like image 1
tusharvikky Avatar answered Nov 02 '22 04:11

tusharvikky