$options=array( "ssl"=>array( "verify_peer"=>false, "verify_peer_name"=>false, ), ); $r = file_get_contents("https://yoursite.com/", false, stream_context_create($options));