我使用具有自定義KeyManager,TrustManager和客戶端身份驗證的java TLS服務器。連接工作和證書交換,客戶端(Firefox)也表示連接已加密。我分析與wireshark的連接,但我沒有看到tls消息,wireshark只顯示tcp段而不解碼有效載荷(如TLS客戶端hello,服務器hello等)。 我啓用調試日誌記錄的,這是服務器的日誌:Java TLS連接行爲
trigger seeding of SecureRandom done seeding SecureRandom Allow unsafe renegotiation: false Allow legacy hello messages: true Is initial handshake: true Is secure renegotiation: false Thread-1, called closeSocket()
這裏沒有問題,但Wireshark無法解碼有效載荷。它被加密。這就是SSL的用途。 – EJP