[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed) の原因と解決法
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed) の原因と具体的な解決手順をまとめました。
エラーメッセージ(全文)
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed)
このエラーとは
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed) は nginx 開発でよく遭遇するエラーです。
想定環境: Windows / macOS / Linux
よく出る状況: nginx error.log
よくある原因
- バックエンドダウン
- タイムアウト
- 静的ファイル欠落
- SSL 検証失敗
解決方法
方法1: upstream 確認
curl 127.0.0.1:バックエンドポート.
それでも直らないとき
バージョン情報(nginx のバージョン、OS、実行コマンド)を添えて、エラーメッセージ全文と直前に変更した点を確認してください。ログの数行上にも原因の手がかりが残っていることが多いです。
まとめ
「[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed)」は バックエンドダウン が原因のことが多いです。上記の手順で切り分けてください。
次にやること
同じ nginx カテゴリの関連エラーもあわせて確認してください。
よくある質問
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routine… とは何ですか?
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routines:tls_process_server_certificate:certificate verify failed) は nginx 実行時に表示されるエラーです。バックエンドダウン
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routine… の原因は?
バックエンドダウン。タイムアウト。静的ファイル欠落。
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routine… の直し方は?
upstream 確認:curl 127.0.0.1:バックエンドポート.
nginx で [crit] 12345#0 が出るのはなぜ?
nginx error.log
[crit] 12345#0: *4 SSL_do_handshake() failed (SSL: error:141CF086:SSL routine… を防ぐには?
。
次に読むべき記事
- nginx: [emerg] duplicate location "/api" in /etc/nginx/sites-enabled/app-0.conf:10 の原因と解決法
- nginx: [emerg] duplicate location "/api" in /etc/nginx/sites-enabled/app-1.conf:11 の原因と解決法
- nginx: [emerg] duplicate location "/api" in /etc/nginx/sites-enabled/app-2.conf:12 の原因と解決法
- [error] 12345#0: *3 open() "/var/www/html/favicon.ico" failed (2: No such file or directory) の原因と解決法
- [error] 12345#0: *2 upstream timed out (110: Connection timed out) while reading response header from upstream の原因と解決法
同カテゴリ「nginxエラー」の記事
- nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/example.com/fullchain.pem" の原因と解決法
- nginx: [emerg] "server" directive is not allowed here in /etc/nginx/nginx.conf:45 の原因と解決法
- nginx: [emerg] unknown directive "proxy_passs" in /etc/nginx/conf.d/app.conf:12 の原因と解決法
- nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) の原因と解決法
- nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive の原因と解決法
- 504 Gateway Time-out while reading response from upstream http://backend-403:8080 の原因と解決法
人気記事
- TS2307: Cannot find module '@components/Widget601' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget591' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget581' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget571' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget561' or its corresponding type declarations の原因と解決法
- TS2307: Cannot find module '@components/Widget551' or its corresponding type declarations の原因と解決法
学習ルート
体系的に学びたい方はこちらから。
エラー・トラブル集で続きを探す →あわせて読みたい
- [error] 12345#0: *3 open() "/var/www/html/favicon.ico" failed (2: No such file or directory) の原因と解決法同カテゴリの関連エラー
- [error] 12345#0: *2 upstream timed out (110: Connection timed out) while reading response header from upstream の原因と解決法同カテゴリの関連エラー
- [error] 12345#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 1.2.3.4, server: example.com, request: "GET /api HTTP/1.1", upstream: "http://127.0.0.1:3000/api" の原因と解決法同カテゴリの関連エラー
- 504 Gateway Time-out while reading response from upstream http://backend-403:8080 の原因と解決法同カテゴリの関連エラー
- nginx: [emerg] invalid number of arguments in "proxy_set_header" directive in /etc/nginx/conf.d/upstream-401.conf:6 の原因と解決法同カテゴリの関連エラー