如何在 laravel 中启用 ssl 保护
How to enable ssl protection in laravel
在 运行 composer update
之后我遇到了这个问题:
You are running Composer with SSL/TLS protection disabled. [Composer\Downloader\TransportException]
curl error 60 while downloading https://repo.packagist.org/packages.json: SSL ce
rtificate problem: unable to get local issuer certificate
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...
您的环境可能存在多个问题,它不允许 SSL 连接,因为该工具无法接受证书。
另一种方法是关闭 SSL 验证,只要您在开发机器上工作即可。
composer config --global disable-tls true
composer config --global secure-http false
您发现在您的项目中进行设置的其他可能性here。
在 运行 composer update
之后我遇到了这个问题:
You are running Composer with SSL/TLS protection disabled. [Composer\Downloader\TransportException]
curl error 60 while downloading https://repo.packagist.org/packages.json: SSL ce
rtificate problem: unable to get local issuer certificate
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] []...
您的环境可能存在多个问题,它不允许 SSL 连接,因为该工具无法接受证书。
另一种方法是关闭 SSL 验证,只要您在开发机器上工作即可。
composer config --global disable-tls true
composer config --global secure-http false
您发现在您的项目中进行设置的其他可能性here。