Solusi Laravel Email TLS SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Jika anda menggunakan laravel dan swiftmail kemudian mendapat error “SSL3_GET_SERVER_CERTIFICATE:certificate verify failed” maka solusinya sebagai berikut

Edit file system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php dan tambahkan

$options[‘ssl’][‘verify_peer’] = false;
$options[‘ssl’][‘verify_peer_name’] = false;

Sebelum

$streamContext = stream_context_create($options);

Save, dan silahkan coba kembali.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

What is 10 + 12 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

 

Wordpress SEO Plugin by SEOPressor