![](https://freeazy.com/wp-content/uploads/2021/10/thum.png)
【PHP】file_get_contentsでエラー
ずっと稼働してたサーバーでいつからかfile_get_contents()でエラーが起きており自サーバー内のファイルを読みにいけなくなるという現象が起きていました。
出てたエラーは下記のようなものでした。
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
file_get_contents(): Failed to enable crypto
file_get_contents failed to open stream: operation failed
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
どうやらSSLの証明書がいけないらしい