title: OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading
body: <p><a href="https://i.stack.imgur.com/45QV6.png" rel="noreferrer">Screenshot is here</a></p>
  <p>I have built a website in PHP using the YII2 framework. When I use file_get_contents($requestUrl, false, stream_context_create($arrContextOptions)) then i am getting error saying <strong>error:0A000126:SSL routines::unexpected eof while reading</strong>
  I have also tried to enable the legacy provider by editing the openssl.cnf file, but got no success.
  Reference: <a href="https://gist.github.com/rdh27785/97210d439a280063bd768006450c435d" rel="noreferrer">https://gist.github.com/rdh27785/97210d439a280063bd768006450c435d</a></p>
  <p>Any help would be appriciated.</p>
  <p>Server: Nginx (nginx/1.18.0)
  OS: Ubuntu 22.04 LTS
  PHP: 7.4.29
  Openssl: 1.1.1d</p>