How to force java server to accept only tls 1.2 and reject tls 1.0 and tls 1.1 connections
I found a solution for this. I set the
jdk.tls.disabledAlgorithms= SSLv2Hello, SSLv3, TLSv1, TLSv1.1
in the file jre/lib/security/java.security
on the server.
After setting this, server only accepts the TLS1.2 connection and reject lower security protocol versions.
How do I make sure that the client is using (or able to use) TLS v1.2 while visiting some pages of an application?
This is an old question. Here's some information
How do I detect the TLS version of an HttpServletRequest?
Can I detect the SSL version that a browser supports?
https://gist.github.com/SamuelChristie/13a2a29e74c189bcfd9b - Gracefully Deprecating TLS 1.0
Java 1.8.0 enable TLS1.2 in JDBC connection
Older versions of Microsoft's JDBC driver for SQL Server apparently assume that TLS v1.1 will be available on the server. That is, they were not coded to handle the case where the server explicitly rejects (or ignores) TLS v1.1 traffic.
Starting with JDBC driver version 6.3.2 we can add ;sslProtocol=TLSv1.2
to our connection URLs to specify the TLS version to use.
Related Topics
Limiting the Number of Characters in a String, and Chopping Off the Rest
How to Truncate a Double to Only Two Decimal Places in Java
Array Pairwise Matching in Java Give Error Also Store Data Between Two Similar Element
Server_Error: [Code] 1675030 [Message]: Error Performing Query
How to Split a Huge Zip File into Multiple Volumes
Converting Number Representing a Date in Excel to a Java Date Object
Java8 Way to Handle If..Else Check in Collections
Convert to Int from String of Numbers Having Comma
Parse a Uri String into Name-Value Collection
Splitting a String Containing Special Characters in to Individual Characters
How to Create a Java Code to Check Multiple Question
Getting Java.Lang.Classnotfoundexception: Javax.Servlet.Servletcontext in Junit
Jdk Tools.Jar as Maven Dependency
Forward Httpservletrequest to a Different Server
How to Resolve Uri Encoding Problem in Spring-Boot
Creating Random Numbers With No Duplicates
Convert Html/Mxml File to Word Doc Programmatically in Java
Http Post Request With Content Type Application/X-Www-Form-Urlencoded Not Working in Spring