I've got a bunch of java apps that run on a single server.
I'd like to disable TLSv1 and other insecure protocols by default for all apps on the server, but allow some apps to override this using a command line argument.
For example, I can use a line like so in my java.security
file in the JVM to disable TLSv1 for all apps by default.
jdk.tls.disabledAlgorithms=TLSv1, SSLv3
I then tried to use the jdk.tls.client.protocols
property to enable it for some apps, but it doesnt seem to override what was set in the JRE.
e.g. This doesn't use TLSv1 if I've disabled it in java.security
java -Djdk.tls.client.protocols=TLSv1 MyTestApp
Can this be done? Or do I need to take a different approach?