當我使用 HAproxy 作為負載均衡器時,在 HTTP 終止模式下,我會跟蹤它的日志
(tail -f /var/log/haproxy.log)。有兩種型別的日志出現
[time] frontend_name/1: SSL handshake failure
和
[time] frontend_name~ message
frontend_name是名稱跟在 /etc/haproxy/haproxy.cfg 中的前端關鍵字配置
我不知道日志訊息中的/1和~是什么,以及為什么出現在日志中的 SSL 握手失敗有~ 有人可以幫我解釋并修復此錯誤嗎?謝謝!
uj5u.com熱心網友回復:
~經過前端名字的意思是連接已使用SSL建立/ TLS
您可以參考它%ft在表項:https://cbonte.github.io/haproxy-dconv/2.4/configuration.html#8.2.4
關于/1在frontend_name/1: SSL handshake failure:
我在檔案中找不到它,但是通過試驗我發現它是前端的埠數,嘗試連接到該埠并且 SSL 握手失敗。
對于配置:
frontend frontend_name
bind *:443,*:444 ssl crt <path_to_cert>
bind *:445 ssl crt <path_to_cert> no-tlsv13
如果我將 TLS1.3 連接到埠 445(例如openssl s_client -connect 127.0.0.1:445 -tls1_3),我將得到:
frontend_name/3: SSL handshake failure
因為 445 是此前端中列出的 3. 埠。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/361365.html
