Tag Archives: Problem with the SSL CA cert (path? access rights?)

curl curl_exec Problem with the SSL CA cert (path? access rights?)

Detailed map traversal, teach you to master the complex gremlin query debugging method>>>

When using cul extension, prompt problem with the SSL CA cert (path?access rights?) Or use Yum to update or install the software

One possibility is that the CA package of the system has not been updated

The package name is

ca-certificates

Update this package. Generally, you can install or update the software through yum

Curl extension still indicates that this problem needs to be solved by restarting PHP and reloading the extension

yum -y install ca-certificates

pkill php-fpm

/usr/local/php/sbin/php-fpm

Problem with the SSL CA cert (path? access rights?)

Detailed map traversal, teach you to master the complex gremlin query debugging method>>>

The test server failed to call the interface without any reason. The return is always empty. So, in curl_ Post method printing exception

curl_error

Problem with the SSL CA cert (path?access rights?)

It’s strange that the code is covered from the formal service to the test service, and the exception remains the same. But there is no problem with the official service

You can also return normally with postman

Online search, called the installation of CA certificate

yum reinstall openssl ca-certificates -y

Direct error reporting

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.10 (default, Apr  2 2018, 10:49:48) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

Use the command to see if it already exists

ll /etc/pki/tls/certs/ca-bundle.crt

It turns out that the official service is

-rw-r--r-- 1 root root 884985 May 10  2017 /etc/pki/tls/certs/ca-bundle.crt

The test suit is

-rw-r--r--. 1 root root 786601 Jun 24  2014 /etc/pki/tls/certs/ca-bundle.crt

It doesn’t look new enough. Try to find the update command. Before I could find it, I saw that the recommended solution was to restart. I suddenly remembered that I had dealt with such a problem before, so I decided to restart Apache

service httpd restart

Problem solving