I've spend a good part of the last couple of days reading through all the solutions on stackoverflow and google but to no avail.
So the concrete problem:
I purchased an SSL certificate from namecheap for my webpage. This particular site is hosted on Amazon EC2, on an Amazon AMI (1).
The site is reachable through HTTPS, and even http://ssllabs.com confirms that both the ssl and the ca bundle are in good shape. However laravel socialite throws a curl 60 error peer cert not valid.
I've double and triple checked that everything is ok on the php.ini on the curl path, so no clue.
The weirdest part is that if i use the cert from https://curl.haxx.se/docs/caextract.html it works just fine!
So excuse the novice question, but am I SUPPOSED to use this cert for CURL? And another different set for https?
Thanks!
Update:
I've updated my php.ini with the cacert.pem path downloaded from https://curl.haxx.se/docs/caextract.html
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo="/var/www/html/cacert.php"
And now im getting a 77 error:
"cURL error 77: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"