composer在update时提示file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO

在开发的时候,需要把依赖的服务更新到最新,然后 手动composer update一下,提示如下:

 1 failed)    Update failed (The "e "https://api.github.com/repos/illuminate/validation/zipball/6590d61858f78c301bced7308593abfcd1c7e527" fi" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
 2 error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
 3 Failed to enable crypto
 4 failed to open stream: operation failed)
 5     Would you like to try reinstalling the package instead [yes]? no
 6
 7
 8   [Composer\Downloader\TransportException]
 9   The "e "https://api.github.com/repos/illuminate/validation/zipball/6590d61858f78c301bced7308593abfcd1c7e527" fi" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
10   error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
11   Failed to enable crypto
12   failed to open stream: oper

如下图所示:

其实主要就是提示:

file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO

经过排查,发现composer.json里面的“config”项中的"secure-http": false 意思就是禁用了https请求:

于是将这个配置项改为true,然后重新composer update依赖,成功解决了这个问题!

原文地址:https://www.cnblogs.com/cmderq/p/9893149.html

时间: 2024-08-29 16:53:38

composer在update时提示file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO的相关文章

【ODP.NET 日期】 在使用Oracle ODP.NET执行Update时提示ORA-00932 和 ORA-01843

[问题] 底层数据库链接由Oracle.Client修改为ODP.NEt连接数据库,以提高执行效率. 执行语句时发现以下问题 cmd.CommandText = "update SYS_USER  set  LASTLOGIN=:LASTLOGIN, MOBILEPHONE='13000000000'  where USERID=:USERID11"; 首先提示 ORA-01843 无效月份,发现ODP.NET 使用OracleDbtype.Date时,Dbparameter.valu

联想lenovo 家用电脑安装win7 无法引导问题(新电脑安装系统时提示File:\Boot\BCD错误解决方案)

安装方式 : 1.进入 PE 2.用 EasyimageX 恢复 GHO镜像 3.重启后出现  原因: 主要 是安装win7 时,格式 化选择为GUID模式. 处理: win7 以后,格式华时选择MBR安装 win8 以上,可以格式 化为GUID 原文地址:https://www.cnblogs.com/sjdn/p/11044565.html

解决Win7下安装composer asset插件时ssl报错的问题

在win7下运行composer,安装asset插件时,出现SSL报错: D:\data\www\mmoyu\symapp>composer global require "fxp/composer-asset-plugin:1.0.0" Loading composer repositories with package information   [Composer\Downloader\TransportException]   The "https://pack

Linux无法连接上127.0.0.1,拒绝连接,更新时提示无法下载,无法正常使用apt-get update

你是否遇到过这种情况,在Linux以apt-get update 时更新的时候无法更新,提示一下内容 p { margin-bottom: 0.25cm; line-height: 120% } 错误:1 http://ppa.launchpad.net/diesch/testing/ubuntu zesty InRelease 无法连接上 127.0.0.1:42165 (127.0.0.1). - connect (111: 拒绝连接) 错误:2 http://archive.ubuntuk

vc6.0 点编译时提示Cannot complile the file 'D:\souce-code\vc-workspace\对话框\MainFrm.h'; no compile tool is

问题描写叙述: vc6.0程序,点击编译时提示对话框,内容为: Cannot complile the file 'D:\souce-code\vc-workspace\对话框\MainFrm.h'; no               compile tool is associated with the file                                                                           extension. 解决方式:

svn update 时总是提示 Password for '默认密钥' GNOME keyring: 输入密码

执行svn update 时 总是提示输入密码. $ cd ~/.gnome2/keyrings/ $ ls $ rm 默认密钥.keyring svn update 时总是提示 Password for '默认密钥' GNOME keyring: 输入密码

编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

在Ubuntu14.04 64位系统中已经安装了libc6:i386的库,编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory. 出错原因是:缺少lib32z1库 解决方法:sudo apt-get install lib32z1

Petapoco Update在使用匿名对象修改时提示“给定关键字不在字典中”

>问题症状 在使用Petapoco的Update方法时通过匿名对象传入单个需要修改的字段时提示“给定关键字不在字典中”,调试中发现运行到 if (primaryKeyName != null) { --> pkpi = pd.Columns[primaryKeyName].PropertyInfo; } 时主键字段并未在pd.Columns中,于是报错. >解决办法 解决方法在https://github.com/toptensoftware/PetaPoco/issues/119,也就

生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory

解决办法: 就是到jdk的安装目录下include下把以下相应的文件,复制到vc目录下的include文件夹下 \jdk\include\jni.h \jdk\include\win32\jawt_md.h \jdk\include\win32\jni_md.h 上面主是jdk安装目录下的三个文件,分别复制它们到vc目录下的include文件夹下.如我的安装位置是: D:\Program Files\Microsoft Visual Studio\VC98\Include 你们可以根据自己的安装