File_get_contents(): SSL error

Hello

There is new error I get each time I uses
file_get_contents() for any SSL URL

My username
epiz_24927975

Website url
http://yanivhatulim.rf.gd/test.php

Error Message

Warning : file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /home/vol8_7/epizy.com/epiz_24927975/htdocs/test.php on line 3

Warning : file_get_contents(): Failed to enable crypto in /home/vol8_7/epizy.com/epiz_24927975/htdocs/test.php on line 3

Warning : file_get_contents(Bitcoin Price | BTC Price Index and Live Chart - CoinDesk): failed to open stream: operation failed in /home/vol8_7/epizy.com/epiz_24927975/htdocs/test.php on line 3

test.php Code:

<?php $res=file_get_contents("https://www.coindesk.com/price/bitcoin?foo=btc"); echo $res; ?>

Maybe related to this problem:

This is the temporary/permanent solution:

3 Likes

Welcome!
There is a solution on here on how to prevent this problem:

1 Like

got it thank you

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.