当前位置:论坛首页 > Linux面板 > 讨论

SSL operation failed with code 1. OpenSSL Error messages

发表在 Linux面板2017-3-27 14:19 [复制链接] 0 4977

宝塔2.8.9版本安装composer
  1. php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
复制代码



PHP Warning:  copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line code on line 1
PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1
PHP Warning:  copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1

报错。
解决方法,参考

http://www.bt.cn/bbs/forum.php?mod=viewthread&tid=1026&highlight=openssl


https://github.com/composer/composer/issues/5519


/www/wwwroot/server/php/71/etc/php.ini
搜索并修改
openssl.cafile=/www/server/php/71/etc/cacert.pem
openssl.capath=/www/server/php/71/etc/



使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表