이런 문제가 발생한 적이 없습니다. SSL 인증서에 문제가 있는 걸까요?
PHPz2017-05-16 16:54:31
是不存는 guzzle这个库能识别到的ssl证书吧...
我找了一下文档发现 http://docs.guzzlephp.org/en/latest/request-options.html#verify-option
버전 <에서 PHP 스트림 래퍼를 사용하는 경우 5.6, Guzzle은 다음 순서로 CA 번들을 찾으려고 시도합니다.
php.ini 파일에
php.ini 파일에
openssl.cafile
이 설정되어 있는지 확인하세요.openssl.cafile
is set in your php.ini file.Check if
curl.cainfo
is set in your php.ini file.Check if
/etc/pki/tls/certs/ca-bundle.crt
exists (Red Hat, CentOS, Fedora; provided by the ca-certificates package)Check if
/etc/ssl/certs/ca-certificates.crt
exists (Ubuntu, Debian; provided by the ca-certificates package)Check if
/usr/local/share/certs/ca-root-nss.crt
exists (FreeBSD; provided by the ca_root_nss package)Check if
/usr/local/etc/openssl/cert.pem
(OS X; provided by homebrew)Check if
C:windowssystem32curl-ca-bundle.crt
exists (Windows)Check if
C:windowscurl-ca-bundle.crt
curl.cainfo
가 설정되어 있는지 확인하세요.
🎜
/etc/pki/tls/certs/ca-bundle.crt
가 있는지 확인하세요(Red Hat, CentOS, Fedora, ca-certificates 패키지에서 제공)🎜🎜
🎜🎜/etc/ssl/certs/ca-certificates.crt
가 있는지 확인하세요(Ubuntu, Debian; ca-certificates 패키지에서 제공)🎜🎜
🎜🎜/usr/local/share/certs/ca-root-nss.crt
가 있는지 확인하세요(FreeBSD, ca_root_nss 패키지에서 제공)🎜🎜
🎜🎜/usr/local/etc/openssl/cert.pem
(OS X; homebrew에서 제공)인지 확인하세요🎜🎜
🎜🎜C:windowssystem32curl-ca-bundle.crt
가 있는지 확인하세요(Windows)🎜🎜
🎜🎜C:windowscurl-ca-bundle.crt
가 있는지 확인하세요(Windows)🎜🎜
🎜
🎜
🎜你按 사진상면设置好了...🎜