Author Topic: Download failed. cURL error 60: Peer's Certificate issuer is not recognized.  (Read 105 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Dear All,

While install any WordPress plugin, it is giving following error:

Installation failed: Download failed. cURL error 60: Peer's Certificate issuer is not recognized.

Screenshot: https://prnt.sc/i-GhisqWwr7g

CentOS Linux release 7.9.2009
Apache version: Apache/2.4.48
PHP version: 7.4.33

I run update-ca-trust extract and update-ca-certificates command with sudo
I didnot find update-ca-certificates anywhere in system

Also,
I have downloaded cacert.pem file from https://curl.se/docs/caextract.html
give full path in php.ini for curl.cainfo and openssl.cafile
then restart apache

Above both does not resolve issue and error still comes as it is.

Any guidance highly appriciated.

Thank you in advance.
« Last Edit: March 05, 2025, 11:35:27 AM by uma »

Offline
***
You are using outdated/unsupported OS CentOS 7. Consider to upgrade OS or migrate to Almalinux 8 or 9 to resolve the problem.

Offline
*

Yes, we can understand that OS is EOL and require migrate.

But mean time, any manual solution to fix this?

Thank you.

Offline
***
The problem appears because your system (CentOS 7) doesn't support TLS v1.2.  (TLS v1.2 is required to establish HTTPS connections with wordpress.org). To enable TLS v1.2 you need to compile openssl v1.0.1 or late from sources then recompile PHP against the compiled openssl version. You will have to do it manually or modify CWP scripts to build PHP.


I think it is the minimum you need to do to solve the problem.