I'm having an issue with my Laravel application's ImageController.php file. Whenever I try to read a file with file_get_contents(), I get the following error message: "SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading".
I have a valid SSL certificate installed that was issued by Let's Encrypt, and my Apache server is configured correctly with TLS 1.2 and TLS 1.3 protocols. The SSL certificate key type is ECDSA. However, I'm still getting this SSL error.
Has anyone encountered this issue before? What could be causing Laravel to throw an SSL error with a valid SSL certificate and Apache configured correctly?
Server version: Apache/2.4.53 (CentOS Stream)
Server built: Jan 30 2023 00:00:00
Linux localhost 5.14.0-252.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 1 13:25:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
I can login to a root shell on my machine (yes or no, or I don't know): YES
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): NO
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.1.0