PHP Email Error Unable to get local issuer certificate

Source: Internet
Author: User
Tags php email ssl certificate


When sending an error message, the message cannot be sent: SSL certificate:unable to get local issuer certificate

Under Windows, curl cannot find the CA certificate to verify the other person's certificate!

Method One: (Highly not recommended, unsafe)

curl_setopt ($ch, Curlopt_ssl_verifypeer, false);

Method Two:

It's easy to fix (PHP 5.3.7 or higher)-Download a list file with an up-to-date certificate authorities, and the add this set Ting to your php.ini

"Curl.cainfo=<path-to>cacert.pem"

From Http://stackoverflow.com/questions/17478283/paypal-access-ssl-certificate-unable-to-get-local-issuer-certificate


This article comes from "technology is forced out." "Blog, be sure to keep this provenance http://linkindick.blog.51cto.com/2345165/1567392

PHP Email Error Unable to get local issuer certificate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.