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.