S
S
svsova2021-10-06 11:40:04
PHP
svsova, 2021-10-06 11:40:04

How to configure centos 6 to fix SSL3_GET_SERVER_CERTIFICATE error for PHP functions?

PHP functions stopped working for me: copy() and file_get_contents(). OP Centos 6, PHP Version 5.6.40
Seems to be a problem with this https://habr.com/ru/post/580092/ (September 30: Let's Encrypt and IdenTrust DST Root CA X3 expiration)
This is confirmed by the fact that CRON too stopped working. Runs only bypassing the certificate verification.
* * * * * wget -O- -q --no-check-certificate https://www.csdot.ru/ …
I am not a strong Centos 6 specialist, the commands indicated in the post do not help.
TP sent me to a new OS.
The work has stopped, the files cannot be downloaded.
Set up new servers - a piece of work + sites to transport.
Maybe someone knows a solution, at least a temporary one.

Thanks to!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-10-06
@ky0

Support sent you absolutely right.
In general, it is most likely enough to disable the use of DST Root CA X3 in the config ca-certificatesand add ISRG Root X1 if it is not there. How this is done has been described many times right here on Habré, in articles about the "problem of lazy admins on September 30".

A
Alexander, 2021-10-06
@tomclancys

The error can be fixed by updating PHP to the latest version. Or, alternatively, roll back to an older version.
Or try to update certificates - https://www.dmosk.ru/miniinstruktions.php?mini=roo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question