Windows Wamp Environment Composer use in OpenSSL problem resolution

Source: Internet
Author: User
Tags ssl connection

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.