curl exception 60: Certificate Security api exception-Collection of common programming errors

Fatal error: Uncaught CurlException: 60: Peer certificate cannot be authenticated with known CA certificates thrown in /home/ldr/public_html/src/base_facebook.php on line 886

See: http://ldr.x10.bz/examples/with_js_sdk.php

I’ve been getting this error for 2 days now and can’t find any information on where it has come from? Why is the certificate known and is there a way for it to be unknown again?

It had been working for months previously, so not sure if the API has just updated but I’ve deleted everything and just uploaded the PHP SDK 3.1.1 but still no luck 🙁

I’ve read about disabling the peer verification but sounds like a bad idea (plus I know it works with it enabled). Probably accidentally unchecked a box somewhere- any ideas on how to restore it back to normal would be very appreciated 🙂

Thanks!