内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
11_php
»
15 file_get_contents SSL エラー
トレース:
•
Microsoft SQL Server 2005 Express Edition
11_php:15_file_get_contents_ssl_error
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 15 file_get_contents SSL エラー ====== 開発環境で自己署名しているhttps環境において、file_get_contentsすると、 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 xxxxx というエラーが表示されます。 ===== 対策 ===== <code> $url = "https://xxxxxx"; $options['ssl']['verify_peer']=false; $options['ssl']['verify_peer_name']=false; $response = file_get_contents($url, false, stream_context_create($options)); </code> {{tag>php}}
11_php/15_file_get_contents_ssl_error.txt
· 最終更新: 2020/02/20 07:40 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ