Composer prompts file cocould not be downloaded: SSL Operation failed with Code 1. OpenSSL error messages: Error: 1407742e: SSL routines: ssl23_get_server_hello during update.

Source: Internet
Author: User

During development, you need to update the dependent services to the latest version, and then manually update the composer. The prompt is as follows:

 1 failed)    Update failed (The "e "https://api.github.com/repos/illuminate/validation/zipball/6590d61858f78c301bced7308593abfcd1c7e527" fi" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: 2 error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 3 Failed to enable crypto 4 failed to open stream: operation failed) 5     Would you like to try reinstalling the package instead [yes]? no 6  7                                                                                                                                                                                                       8   [Composer\Downloader\TransportException]                                                                                                                                                            9   The "e "https://api.github.com/repos/illuminate/validation/zipball/6590d61858f78c301bced7308593abfcd1c7e527" fi" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:  10   error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version                                                                                                                    11   Failed to enable crypto                                                                                                                                                                            12   failed to open stream: oper
View code

As shown in:

In fact, the main prompt is:

File cocould not be downloaded: SSL Operation failed with Code 1. OpenSSL error messages: Error: 1407742e: SSL routines: ssl23_get_server_hello

After investigation, we found that "secure-http": false in "Config" in composer. JSON indicates that HTTPS requests are disabled:

Change this configuration item to true, and then re-composer update dependency. This problem is successfully solved!

Composer prompts file cocould not be downloaded: SSL Operation failed with Code 1. OpenSSL error messages: Error: 1407742e: SSL routines: ssl23_get_server_hello during update.

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.