Laravel certificate verification errors when sending TLS email

Solution 1:

Solution:

  1. Download the cURL cacert.pem file

  2. Put the cacert.pem somewhere you like

  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 the web server