Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rubenochoa's avatar

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

0 likes
14 replies
Sinnbeck's avatar

Did you try restating the php handler? The change might not have been registered. Perhaps just reboot

rubenochoa's avatar

@sinnbeck

[PHP Modules]
bcmath       
calendar     
com_dotnet   
Core
ctype        
date
dom
filter       
hash
iconv        
json
libxml       
mysqlnd      
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
soap
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
SarwarAhmed's avatar

Did you run?

composer config -g -- disable-tls true

Just for your local machine.

rubenochoa's avatar

No. As I said I am afraid to lose my security on Laravel.

rubenochoa's avatar
rubenochoa
OP
Best Answer
Level 2

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
1 like
codegenty's avatar

I resolved this by upgrading my composer version to the latest.

Please or to participate in this conversation.