我一直试图没有成功让我的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