我一直試圖沒有成功讓我的pyOpenSSL客戶端使用TLS/SSL會話恢復時,多次連接(它發送http請求)到Tomcat應用程序服務器。我很確定服務器端一切正常,因爲我有幾個其他客戶端進行類似的連接,他們都能夠做會話恢復。獲取pyOpenSSL客戶端以使用SSL會話繼續
對於第一次連接,我創建了ssl上下文。然後我就重用上下文後續連接
# Just do this for the first and then reuse the context for subsequent connections.
ssl_context = SSL.Context(SSL.SSLv23_METHOD)
ssl_context.set_options(SSL.OP_NO_SSLv2)
# Do this for every connection
sock = socket.create_connection((self.host, self.port), self.timeout)
sslconn = SSL.Connection(ssl_context, sock)
sslconn.set_connect_state()
sslconn.do_handshake()
您可以爲您的語句引用?你指的是哪個版本號?也許這個功能將來會被添加... – honk 2014-12-16 19:01:16