You can resolve above issue by adding additional parameters not to check SSL certificate in file_get_contents(), s

You can resolve above issue by adding additional parameters not to check SSL certificate in HTTPS protocol as following:

$result = file_get_contents( $url, false, stream_context_create([ "ssl" => [ "verify_peer"=>false, "verify_peer_name"=>false ]]));