A security audit I just ran turned up that we are using a sub-par key strength (recommended 2048 or higher, ours is 1024 bits) for the Diffie-Hellman groups (TLS). Upon researching I found that starting JDK 8 we can set the DH key size to be 2048. All the options suggested in How to expand DH key size to 2048 in java 8 apply to Oracle JDK and they do work for that.
However, when I try to set -Djdk.tls.ephemeralDHKeySize=2048
as JVM argument on my Ubuntu with OpenJDK 8 it is still remaining to be 1024 bits. Any help is appreciated.