Error in cURL request: SSL certificate problem: self signed certificate in certificate chain