How to enable client TLS session reuse in Java [duplicate]
问题 This question already has an answer here : Java TLS Session Reuse after closed connection (1 answer) Closed 3 years ago . I have a Java client that may create many sessions to the same server. The TLS protocol has a facility to cache session keys and thus avoid the expensive PKI processing for each connection. But I cannot get it to actually work. openssl s_client -reconnect -state -prexit -connect localhost:1234 Reports that the server has "Reused, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256