The Composer installer script was not successful - OpenSSL failed with a ‘certificate verify failed’ error

Hi
I wanted to install Composer on my PC
I am using a registered version of PHPMaker 2024.16.0
The following error appeared:
///////////
The Composer installer script was not successful [exit code 1].
OpenSSL failed with a ‘certificate verify failed’ error. This indicates a problem with the Certificate Authority file(s) on your system, which may be out of date.

Certificate location [from openssl.cafile ini setting]:
C:\xampp\apache\bin\curl-ca-bundle.crt

The php.ini used by your command-line PHP is: C:\xampp\php\php.ini

Script Output:
The “https://getcomposer.org/versions” file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:0A000086:SSL routines::certificate verify failed
Failed to enable crypto
Failed to open stream: operation failed
///////

Could anybody help?
Thanks a lot
H.

As the error message says:

You need to update your cert, you may google “php curl cert” to find the answer.

download: https://curl.se/ca/cacert.pem
save it to the: C:\xampp\apache\bin
rename to: curl-ca-bundle.pem

Hi
Thanks all of you.
The main problem was my antivirus program.
I have stopped Antivirus a d installed Composer correctly ,
Thanks again
H.