I know this question is all over the place on this site, but all the solutions haven't worked with me.
I get this error when running composer install:
In Factory.php line 650:
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 true.
I don't know where it's getting Factory.php from but it's not in my project directory.
I did all the proposed solutions. I renamed my PHP's php.ini-development file to php.ini, and uncommented the following:
extension=openssl
And since I'm on windows, this too:
extension_dir = "ext"
I have also enabled SSL through Laragon menu > Apache > SSL > Enable
My php.ini file is located in my laragon folder like this:
C:\laragon\bin\php\PHP7\php.ini
Then I noticed something: when I right-click on Laragon for the menu and go to php.ini, it says no php.ini file located (even though it's in the right spot.) As seen in
If you don't you're probably not enabling openssl.