PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in some_path
PHP Warning: file_get_contents(): Failed to enable crypto in some_path
PHP Warning: file_get_contents(some_url): failed to open stream: operation failed in some_path
<?php $url = "https://www.google.com/file.json" $arrContextOptions = array( "ssl" => array( "verify_peer" => false, "verify_peer_name" => false, ), ); $content = file_get_contents($url, false, stream_context_create($arrContextOptions)); echo $content;