Answer the question
In order to leave comments, you need to log in
PHP SSL: Handshake timed out?
Hello, there is an Ubuntu 20 server on which nginx and php 7.4 are present.
Immediately after installing and configuring them, a simple test site on both html and php started without problems.
But when testing a single php script both from the console and directly from the browser, an error always appears SSL: Handshake timed out and then Failed to enable crypto
These errors occurred when using the basic file() functions; and file_get_contents();
There was no such problem when using curl.
What is the problem and how to solve it?
Answer the question
In order to leave comments, you need to log in
Try changing default_socket_timeout like thisdefault_socket_timeout = 360
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question