file could not be downloaded: Peer certificate

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了file could not be downloaded: Peer certificate相关的知识,希望对你有一定的参考价值。

composer require aws/aws-sdk-php时候报如下错!

[Composer\Downloader\TransportException]
The "https://packagist.laravel-china.org/p/aws/aws-sdk-php%249b148b0156ebe4ff27b810e1b682b39ba578f8a895daa3646554e0297d96e09d.json" file could not be downloaded: Peer certifica
te CN=*.phphub.org‘ did not match expected CN=packagist.laravel-china.org‘
Failed to enable crypto
failed to open stream: operation failed

遇到这样的问题!
怎么解决?更换镜像!

composer config -g repo.packagist composer  https://mirrors.aliyun.com/composer/
composer require aws/aws-sdk-php

以上是关于file could not be downloaded: Peer certificate的主要内容,如果未能解决你的问题,请参考以下文章

Unity导入图片报错File could not be read

Unity导入图片报错File could not be read

Unity导入图片报错File could not be read

MySQL server PID file could not be found!

MySQL server PID file could not be found!

ERROR! MySQL server PID file could not be found!的解决方法