Curl: (certificate) SSL problem:unable to get local issuer certificate error, curlissuer_php tutorial

Source: Internet
Author: User

Curl: (+) SSL certificate problem:unable to get local issuer certificate error, Curlissuer


This issue occurs because the trusted server HTTPS authentication is not configured. By default, curl is set to not trust any CAs, which means that it does not trust any server authentication. Therefore, this is why the browser cannot access your server over HTTPS. When this issue occurs, the best way for a network programmer is to fully specify a default set of trusted CAs, provided that you have already purchased a certificate from these CAs.
If your content is not sensitive, a quick way is to skip the SSL check before using Curl_exec ():

curl_setopt ($chfalse);

SSL Error 86 workaround

Error message: Unable to verify security certificate unable go get local issuer certificate.
The translation of English error messages is "Unable to obtain a certificate issuer" because the CA certificate for this certificate is not installed on your computer.

What you need to do is to obtain the certificate's CA certificate and install it on your computer.

How to install certificates for wget under Linux

Take a good look at Wget's help, add-no-check-certificate options, and try.

http://www.bkjia.com/PHPjc/889011.html www.bkjia.com true http://www.bkjia.com/PHPjc/889011.html techarticle Curl: (certificate) SSL problem:unable to get local issuer certificate error, Curlissuer This issue occurs because there is no trusted server HTTPS authentication configured. By default, Curl is ...

  • Related Article

    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.