Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gaan10's avatar

cant install composer says certificate issue

I am trying to install composer

sudo curl -sS https://getcomposer.org/installer | sudo php

But its says : curl: (60) Peer's Certificate issuer is not recognized. If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

So i tried this :

sudo curl  -k -sS https://getcomposer.org/installer | sudo php

But still its not working.

0 likes
2 replies
gaan10's avatar

I am using aws server. Its ok ,problem solved.

Please or to participate in this conversation.