Symptoms:
Here is the Error:
gfsh>connect --locator=remotehost[7900] --use-ssl --security-properties-file=/home/app/gemfire.properties --user=user1
password: ********
Connecting to Locator at [host=remotehost, port=7900] ..
Unable to form SSL connection
Locator's Log:
[info 2018/11/01 01:01:01.005 EST remotehost_locator <locator request thread[123]> tid=0x444] Exception in processing request from 10.35.31.110
javax.net.ssl.SSLException: Error generating DH server key exchange
at sun.security.ssl.Handshaker.throwSSLException(Handshaker.java:1391)
at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:886)
at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:224)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at org.apache.geode.internal.net.SocketCreator.configureServerSSLSocket(SocketCreator.java:1010)
at org.apache.geode.distributed.internal.tcpserver.TcpServer.lambda$processRequest$0(TcpServer.java:368)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
at sun.security.provider.DSA.checkKey(DSA.java:111)
at sun.security.provider.DSA.engineInitSign(DSA.java:143)
at java.security.SignatureSpi.engineInitSign(SignatureSpi.java:103)
at java.security.Signature$Delegate.init(Signature.java:1155)
at java.security.Signature$Delegate.chooseProvider(Signature.java:1112)
at java.security.Signature$Delegate.engineInitSign(Signature.java:1185)
at java.security.Signature.initSign(Signature.java:550)
at sun.security.ssl.HandshakeMessage$DH_ServerKeyExchange.<init>(HandshakeMessage.java:750)
at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:882)
... 12 more
Gemfire Server JDK version and Certificate info:
Signature algorithm name: SHA256withDSA
Subject Public Key Algorithm: 2048-bit DSA key
OpenJDK version "1.8.0_151"
gfsh client JDK version:
OpenJDK Runtime Environment (build 1.8.0_64)