Today, under Windows Learning Lavaral, use the composer Update command to report the following error:
[Composer\exception\nosslexception]
The OpenSSL extension are required for SSL/TLS protection but are not available. If You can not enable the OpenSSL ex
Tension, you can disable this error, at your own risk, by setting the ' disable-tls ' option to true.
The general meaning is that composer requires the use of OpenSSL connection, Baidu related issues, the solution is divided into two types:
First, disable OpenSSL, the result is a temporary solution not to abandon the root
Second, open the php OpenSSL extension, download the CA certificate
Here's how:
1, open the PHP extension, left wamp-php-php extension-php_openssl front tick.
2, in D:\wamp\wamp\bin\php\php5.4.12 (see Personal installation path OK) Find php.ini file, open with sublime.
Find Extension=Php_openssl. DLL, remove the extension=php_openssl.dll
preceding semicolon, uncomment it, and enable the OpenSSL plugin.
Note: Because the SSL connection requires authentication, you need to prepare the CA certificate (it is recommended to save the certificate to the directory) before proceeding to the following steps, which D:\wamp\wamp\bin\php\php5.4.12\verify
can be downloaded from https://curl.haxx.se/docs/caextract.html. (If you open the file directly, save as a modified file name)
3, if the php.ini file can be found
; OpenSSL. Cafile=
As above, remove the semicolon comment and set the CA certificate to D:\wamp\wamp\bin\php\php5.4.12\verify, i.e.
Openssl.cafile= "D:\wamp\wamp\bin\php\php5.4.12\verify\cacert.pem" If you cannot find a direct add
Openssl.cafile= "D:\wamp\wamp\bin\php\php5.4.12\verify\cacert.pem"
Complete the above operation again in the CMD environment to run the composer update problem resolution, refer to the article
http://blog.csdn.net/fjnjxr/article/details/54968072
I am in the process of installation, even to meet the above requirements, there is a similar to the following error, the final troubleshooting, is php_fileinfo not open caused, in php.ini This configuration item comments removed
To enable extensions, verify that they are enabled in those .ini files:- X:\wamp\php\php.iniYou can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
From: http://blog.csdn.net/u011120720/article/details/51983311
Windows Wamp Environment Composer use in OpenSSL problem resolution