How is your site hosted? This is in localhost installs, so I’m assuming that it has something to do with that. Plus, you refereced c:, so we can assume (sadly) Windows. Can you ping api.wordpress.org from your computer?
Yes, localhost using laragon, thanks for looking into it!
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 28ms, Maximum = 33ms, Average = 30ms
Inside laragon, can you ping out to the same address? The key words here are “a secure connection”, so it may be that your version of Laragon or Windows is using the wrong TLS levels or is using an older version of the openSSL libraries.
Debugging stuff like this for localhost sites is extremely difficult because environments can vary so much.
I like to recommend https://localwp.com/ for localhosting.
Thanks for the help and suggestions, I have no tried local by flywheel yet, worried it may be slower than laragon, which is very fast compared to xampp.
I tried connecting securely through laragon using 443 port and error occurred, doubled checked with google and same error showed:
Ran this command
openssl s_client -connect api.wordpress.org:443
SSL handshake has read 3778 bytes and written 392 bytes
Verification error: self signed certificate in certificate chain
Can at least single out that it is not WordPress that is causing the issue.
Going to check the TLS and openSSL libraries as well and see support at laragon forums as well, thank you for the help!