The reason was that the server only supported weak ciphers. While updating the server is certainly the clean/good solution, the quick one is to remove the constraints as mentioned here:
Within /usr/lib/jvm/default-java/jre/lib/security/java.security
or - depending on your OS - /etc/crypto-policies/back-ends/java.config
you have a line
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024,
Notice the DH keySize < 1024
. So no keys which are smaller are allowed.
Replacing this with
jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 768,
or completely removing the DH keySize < 1024
part could solve the problem.
You can do this via
$ sed -i "s/ DH keySize < 1024,//" /usr/lib/jvm/default-java/jre/lib/security/java.security
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…