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

rixgov's avatar

CURL error 51: SSL not valid...

I'm getting the cURL error 51: SSL not valid... I've tried redownloading the cacert.pem from cURL and putting in every directory, editing all the php.ini's and I'm running into the same problem every time. Zttp and guzzle just won't let me send out a post request to google.com.... how did you guys fix this?

0 likes
3 replies
rixgov's avatar

Hey thanks! I'm still getting stuck. When i do "curl www.whatever-site.com" in the terminal... it actually returns the proper response! (so frustrating that it works here and not in my app) It's only an issue with guzzle/zttp within laravel which makes me think guzzle is just using the wrong path. i.e. its using the system certs instead of the homebrew ones. I've gone through so many forums but can't figure out how to make this work correctly... any ideas? thanks!

Please or to participate in this conversation.