composer无法获取https源的一种故障
已经在composer.json里切换到了阿里的源,但是还是提示出错。
The "https://mirrors.aliyun.com/composer/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
https://mirrors.aliyun.com/composer could not be fully loaded, package information was loaded from the local cache and may be out of date
最后分析是由于自己设定了私有openssl的根证书,可能导致不被外界认可,所以会提示无法被信任,导致不能访问。所以只能先禁用自己的证书。禁用之后就可以正常composer update。
;openssl.cafile=D:\phpStudy\PHPTutorial\1.pem
;openssl.capath=D:\phpStudy\PHPTutorial
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。