Laravel 5.2 menghadapi masalah "Tiada himpunan CA sistem" semasa mengakses laluan
世界只因有你
世界只因有你 2017-05-16 16:52:31
0
1
548
No system CA bundle could be found in any of the the common system locations.
PHP versions earlier than 5.6 are not properly configured to use the system's
CA bundle by default. In order to verify peer certificates, you will need to
supply the path on disk to a certificate bundle to the 'verify' request
option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not
need a specific certificate bundle, then Mozilla provides a commonly used CA
bundle which can be downloaded here (provided by the maintainer of cURL):
https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt. Once
you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP
ini setting to point to the path to the file, allowing you to omit the 'verify'
request option. See http://curl.haxx.se/docs/sslcerts.html for more
information.

Sila beritahu saya, saya tidak pernah menghadapi masalah ini sebelum ini. Adakah terdapat masalah dengan sijil SSL saya?

世界只因有你
世界只因有你

membalas semua(1)
PHPzhong

是不存在guzzle这个库能识别到的ssl证书吧...

我找了一下文档发现 http://docs.guzzlephp.org/en/latest/request-options.html#verify-option

Apabila menggunakan pembalut aliran PHP pada versi < 5.6, Guzzle cuba mencari berkas CA anda dalam susunan berikut:

  1. Semak jika openssl.cafile ditetapkan dalam fail php.ini anda.openssl.cafile is set in your php.ini file.

  2. Check if curl.cainfo is set in your php.ini file.

  3. Check if /etc/pki/tls/certs/ca-bundle.crt exists (Red Hat, CentOS, Fedora; provided by the ca-certificates package)

  4. Check if /etc/ssl/certs/ca-certificates.crt exists (Ubuntu, Debian; provided by the ca-certificates package)

  5. Check if /usr/local/share/certs/ca-root-nss.crt exists (FreeBSD; provided by the ca_root_nss package)

  6. Check if /usr/local/etc/openssl/cert.pem (OS X; provided by homebrew)

  7. Check if C:windowssystem32curl-ca-bundle.crt exists (Windows)

  8. Check if C:windowscurl-ca-bundle.crt

Semak jika curl.cainfo ditetapkan dalam fail php.ini anda.

🎜Semak jika /etc/pki/tls/certs/ca-bundle.crt wujud (Red Hat, CentOS, Fedora; disediakan oleh pakej ca-certificates)🎜🎜 🎜🎜Semak sama ada /etc/ssl/certs/ca-certificates.crt wujud (Ubuntu, Debian; disediakan oleh pakej ca-certificates)🎜🎜 🎜🎜Semak sama ada /usr/local/share/certs/ca-root-nss.crt wujud (FreeBSD; disediakan oleh pakej ca_root_nss)🎜🎜 🎜🎜Semak sama ada /usr/local/etc/openssl/cert.pem (OS X; disediakan oleh homebrew)🎜🎜 🎜🎜Semak sama ada C:windowssystem32curl-ca-bundle.crt wujud (Windows)🎜🎜 🎜🎜Semak sama ada C:windowscurl-ca-bundle.crt wujud (Windows)🎜🎜 🎜 🎜 🎜你按照上面设置好了...🎜
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!