Y
Y
Yuri2022-02-07 23:15:30
PHP
Yuri, 2022-02-07 23:15:30

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

1 answer(s)
A
Alexander Karabanov, 2022-02-10
@urec-borec

Try changing default_socket_timeout like thisdefault_socket_timeout = 360

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question