"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > How to Fix \"stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed\" in Laravel Ema

How to Fix \"stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed\" in Laravel Ema

Published on 2024-11-05
Browse:263

How to Fix \

Laravel certificate verification error while sending TLS email

You are encountering certificate verification error while sending TLS email using Laravel, error message For "stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed".

To resolve this error, check whether your server automatically manages a trusted certificate store. If not, follow these steps:

  1. Download the cURL cacert.pem certificate package.
  2. Place cacert.pem wherever you like; if you have self-signed certificates that need to be accepted, open the package in a text editor and add them to the end of the file.
  3. Edit php.ini to reference this file location:
curl.cainfo = D:/Servers/php/sslfiles/cacert.pem
openssl.cafile = D:/Servers/php/sslfiles/cacert.pem
  1. Restart PHP-FPM or your web server, depending on how you are running PHP. After following these steps, your Laravel application will be able to send emails using TLS without certificate validation errors.
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3