I'm creating my SSL context like this:

SSLContext ret = SSLContext.getInstance("TLSv1.2");

When I went in firefox and forced it to disable TLS1.2, I noticed the page still loaded using TLS1.1

I would like to make sure the server ONLY allows TLS1.2 -- does anyone know of a way to do this?


1 Answer 1


Check out SSLSocket.setEnabledProtocols(). Here are the valid names for protocols.

Not the answer you're looking for? Browse other questions tagged .