Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

oakshott's avatar

SSL error php artisan queue:listen

I am getting and error when running php artisan queue:listen [ErrorException] stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error: 1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

I have tried adding 'stream' => [ 'ssl' => [ 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false, ], ], to config/mail.php, but same result.

Does anyone have any ideas on how to fix this without going down the route of editing vendor code?

0 likes
1 reply
Snapey's avatar

do you get the same error with other artisan commands?

why are you changing settings related to mail?

Please or to participate in this conversation.