When run composer install or composer update commend some time error throw
" The OpenSSL extension is required for SSL/TLS protection."
Sometimes I face this error. I fixed it by turning off TLS for the composer. This method is not safe but on my development server, I assumed the risk.
To disable TLS on the composer try this commend -
composer config -g -- disable-tls true
and re-run your composer commend. I hope it will work.
If you don't want to enable this unsafe layer in your server, then configure your PHP to enable OpenSSL. This method also works for solving the error.
Make sure the OpenSSL extension has been installed and enabled on php.ini.
To enable OpenSSL to find and uncomment or add this line on your php.ini file.
For Windows:
extension=php_openssl.dll
For Linux/OSx:
extension=php_openssl.so
After updating the php.ini restart the webserver if needed.