composer config -g -- disable-tls true
composer update
An old issue about SSL/TLS protection
I searched and I found that there is another topic with the same issue as mine but it confusing me a lot... The issue is that recently reinstalled MAMP, cause this was the only way to update the php version and the main reason to update Laravel 7 to 8. I am using windows 10. At ini.php file uncomment the two lines:
extension=openssl
extension_dir = "ext"
but when I give the command
composer update
i get:
[Composer\Exception\NoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to tr
ue.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
It is not highly recommended to disable the TLS
Finally solved! The problem was the php version of MAMP. I was using the latest version (7.4.1) when I installed composer. So I choosed the 7.3.7 version during the installing...and finnaly could use: composer update
Thank you @sarwarahmed @sinnbeck. Now the latest version is:
Laravel Framework 8.9.0
Please or to participate in this conversation.