MeWrite Docs

SSL/TLSエラー

4件の記事

概要

SSL/TLS接続時に発生するエラーの診断ガイドです。ハンドシェイク失敗、証明書期限切れ、証明書検証失敗などの問題を解決します。

エラー一覧

エラー主な原因解決策
handshake failedプロトコル/暗号スイート不一致TLSバージョン確認
certificate expired証明書有効期限切れ証明書更新
certificate verify failed証明書検証失敗CA証明書確認
certificate problem証明書全般の問題証明書チェーン確認

切り分けフローチャート

SSL/TLSエラー
├── 「certificate has expired」「CERT_DATE_INVALID」
│   └── → certificate expired(証明書期限切れ)
├── 「CERTIFICATE_VERIFY_FAILED」「unable to get local issuer certificate」
│   └── → certificate verify failed / certificate problem
├── 「handshake failure」「SSL connect error」
│   └── → handshake failed
└── その他
    └── → openssl s_client で詳細確認

基本的な診断コマンド

1
2
3
4
5
6
7
8
9
# 証明書の有効期限を確認
echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -noout -dates

# 証明書チェーンを確認
openssl s_client -connect example.com:443 -showcerts

# TLSバージョン確認
openssl s_client -connect example.com:443 -tls1_2
openssl s_client -connect example.com:443 -tls1_3

関連カテゴリ

お探しの環境がありませんか?