PHP message: PHP Warning: file_get_contents(): SSL operation failed – SSL routines:ssl3_get_server_certificate:certificate verify failed

FastCGI sent in stderr: “PHP message: 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

$options=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false
    ),
); 

$url_request = 'https://www.something.com/else.php';

$html = file_get_contents($url_request, false, stream_context_create($options));;

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.