StackShelf
HTTPエラー エラー解決

SSL certificate problem: unable to get local issuer certificate の原因と解決法

SSL certificate problem: unable to get local issuer certificate の原因と具体的な解決手順をまとめました。

1分で読める
httpHTTPエラーSSL certificate problemSSLTLSSSL certificate problem: unable to get l

エラーメッセージ(全文)

SSL certificate problem: unable to get local issuer certificate

このエラーとは

SSL certificate problem: unable to get local issuer certificate は HTTP 開発でよく遭遇するエラーです。

想定環境: Windows / macOS / Linux

よく出る状況: HTTPS 接続時

よくある原因

  • 自己署名証明書
  • 証明書期限切れ
  • 中間証明書不足

解決方法

方法1: 証明書チェーン確認

openssl s_client -connect host:443.

それでも直らないとき

バージョン情報(HTTP のバージョン、OS、実行コマンド)を添えて、エラーメッセージ全文と直前に変更した点を確認してください。ログの数行上にも原因の手がかりが残っていることが多いです。

まとめ

「SSL certificate problem: unable to get local issuer certificate」は 自己署名証明書 が原因のことが多いです。上記の手順で切り分けてください。

次にやること

同じ HTTP カテゴリの関連エラーもあわせて確認してください。

よくある質問

SSL certificate problem: unable to get local issuer certificate とは何ですか?

SSL certificate problem: unable to get local issuer certificate は HTTP 実行時に表示されるエラーです。自己署名証明書

SSL certificate problem: unable to get local issuer certificate の原因は?

自己署名証明書。証明書期限切れ。中間証明書不足。

SSL certificate problem: unable to get local issuer certificate の直し方は?

証明書チェーン確認:openssl s_client -connect host:443.

HTTP で SSL certificate problem が出るのはなぜ?

HTTPS 接続時

SSL certificate problem: unable to get local issuer certificate を防ぐには?

次に読むべき記事

同カテゴリ「HTTPエラー」の記事

学習ルート

体系的に学びたい方はこちらから。

エラー・トラブル集で続きを探す →

あわせて読みたい