I recently updated my local OS X Zend Server installation to PHP 5.6 and when I ran composer self-update, I got this error message:
[Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Failed to enable crypto failed to open stream: operation failed
Googling around, I finally worked out that there have been various SSL improvements in PHP 5.6 and that the problem was that it couldn't find any OpenSSL certificates on my system. This isn't a total surprise as OS X has been moving away from using OpenSSL internally in favour of its own libraries.
There's a new PHP function openssl_get_cert_locations that helps with this and so I ran:
$ php -r "print_r(openssl_get_cert_locations());"
on the command line to find out where PHP was looking. On my system, I got this:
Array ( [default_cert_file] => /usr/local/openssl-0.9.8zb/ssl/cert.pem [default_cert_file_env] => SSL_CERT_FILE [default_cert_dir] => /usr/local/openssl-0.9.8zb/ssl/certs [default_cert_dir_env] => SSL_CERT_DIR [default_private_dir] => /usr/local/openssl-0.9.8zb/ssl/private [default_default_cert_area] => /usr/local/openssl-0.9.8zb/ssl [ini_cafile] => [ini_capath] => )
There is no directory /usr/local/openssl-0.9.8zb on my system and SSL_CERT_FILE and SSL_CERT_DIR are not defined, so it's no surprise that PHP was struggling.
To fix it, I install openssl via homebrew:
brew install openssl
This installs the openssl certificates to /usr/local/etc/openssl/cert.pem, so we can now use the new PHP 5.6 INI setting openssl.cafile to tell PHP where to find the certificates:
Adding
openssl.cafile=/usr/local/etc/openssl/cert.pem
to Zend Server's php.ini solved the problem and I can now use composer once again!
相关推荐
NULL 博文链接:https://wuhuizhong.iteye.com/blog/1131339
使用php语言实现verification——code 功能
fingerprint verification on matlab
http远程接口调用-httpClient+跳过SSL证书校验. 里面分别有3个httpClient的工具类代码。 还有一个专门为了跳过SSL证书校验的工具类。
屏幕截图完整可靠地显示了您当前的页面! 认证和公证网页信息并存储在EKO区块链上 支持语言:English (United States)
coursera 上的吴恩达的机器学习课程,octave4.0.0版本提交作业时会提示提交失败,只要将每个作业文件下的lib文件替换成本资源提供的lib即可。
Table of Contents Preface, Notes, Licenses . . . . . . . . ....1. Licenses for Third-Party Components ....1.1. FindGTest.cmake License ....1.2. LPeg Library License ....1.3. LuaFileSystem Library License ....
jenkins发版报错Host key verification failed. jenkins发版报错Host key verification failed. jenkins发版报错Host key verification failed. jenkins发版报错Host key verification failed. jenkins发版报错Host ...
A Verification Platform for System on Chip。希望对大家有所帮助。
用java swing写的批量上传组件。分享给大家一起学习,有不足的地方,大家一起完善。呵呵
SystemVerilog for Verification teaches the reader how to use ... SystemVerilog for Verification concentrates on the best practices for verifying your design using the power of the language.
toward the verification of persive systems. you can find this paper is on a project supervisized by professor Mark Ryan atl. It is on the issue of verification of protocols.
目前,很难通过CloudFormation从AWS Certificate Manager自动检索经过验证的SSL / TLS证书,因为您至少需要在一个超级域上拥有一个管理员电子邮件地址。 此处提供的解决方案通过管理与CloudFormation不友好的SES相关...
新页面叫Verification.html,在头部新加了一个链接入口。banner也改了一下。你看看
VERIFICATION BY ERROR MODELING
In this paper, we propose a novel palmprint verification approach based on principal lines. In feature extraction stage, the modified finite Radon transform is proposed, which can extract ...
verification with c++
system_verification_using_soundcheck