Problem.
When accessing https SSL certified websites, they are often rejected as php cannot process the certificate attached to the website and/or user agent exceptions, one way around that is to make php accept all certificates.
file_get_contents SSL operation failed with code 1 SSL3_GET_SERVER_CERTIFICATE certificate verify failed.
Here is the code to get around that.. also sets a 60 second timeout, and a user agent string.
$dargs=array("ssl"=>array("verify_peer"=>false,"verify_peer_name"=>false),"http"=>array('timeout' => 60, 'user_agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/3.0.0.1')); $response = file_get_contents("your SSL url entered here", false, stream_context_create($dargs)); echo $response; // or code to handle returned url contents