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 *