Curl error: Problem with the ssl ca cert (path access rights ?) Solution, curlcert

Source: Internet
Author: User

Curl error: Problem with the ssl ca cert (path access rights ?) Solution, curlcert

Curl error: Problem with the ssl ca cert (path access rights ?) .

Here is the CA problem: first, the CA that issues the server certificate is okay, so it should be a problem with the ca-bandle.crt that curl uses, this means that you have deleted some files in the/etc/pki/tls/certs/directory or set invalid permissions.

$ Yum reinstall openssl ca-certificates-y $ ll/etc/pki/tls/certs/ca-bundle.crt # check whether there is

Then download the latest cacert. pem from this website (https://curl.haxx.se/docs/caextract.html) and rename it to/etc/ssl/certs/ca-certificates.crt

$ Curl -- remote-name -- time-cond cacert. pem https://curl.haxx.se/ca/cacert.pem-O/root/ca-certificates.crt $ cp cacert. pem/etc/ssl/certs/ca-certificates.crt

Finally, restart the php service.

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.