Weak ephemeral Diffie-Hellman key

Get help with troubleshooting issues
Post Reply
dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Weak ephemeral Diffie-Hellman key

Post by dcipher » Wed Oct 07, 2015 1:53 pm

When I try to access a Windows 2012 R2 server using TSplus 8.3 from the browser using port 443 I get the following error in the web browser. I am using the default SSL certificate that comes with TSPLus.

Secure Connection Failed

An error occurred during a connection to 64.141.100.106. SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message. (Error code: ssl_error_weak_server_ephemeral_dh_key)

What is needed to resolve this error? Can this be fixed by generating a new self signed certificate or do I need to purchase a commercial certificate?

Thanks,
Simon

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Weak ephemeral Diffie-Hellman key

Post by admin » Wed Oct 07, 2015 3:48 pm

Hello,

You are correct, this means your browser detects a certificate that is not secured enough : weakdh.org/
You can connect using http:// instead of https:// to prevent this or use your own custom SSL certificate : terminalserviceplus.com/docs/https-ssl-certificates-tutorial
Olivier
TSplus support team administrator
Image

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Weak ephemeral Diffie-Hellman key

Post by juwagn » Wed Oct 07, 2015 5:47 pm

Hello,

usually Tsplus runs in compatibility mode, try also to create in *Tsplusinstallation*\webserver\ file named "tls.bin" with following content:
SSLv3, TLS_ECDHE_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,

Save this file and restart html5 via GUI, check the result if it helped, because it should activate TLS1.1 and TLS1.2 which seems to be the cause of your problem actually when used TLS1.0 only.
Also, I hope, it helps.
TSplus HTML5 and Java web engineer

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: Weak ephemeral Diffie-Hellman key

Post by juwagn » Wed Oct 07, 2015 6:06 pm

Additionally to get A grade from SSL Labs (ssllabs.com) you can do following.
In *Tsplusinstallation*\webserver\ locate file "runwebserver.ini" and add following commands to runtime environment of Java.
-Djdk.tls.ephemeralDHKeySize=matched -Djdk.tls.rejectClientInitiatedRenegotiation=true

To get stronger algos like AES256 etc. you need to install "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for JDK/JRE 8" (oracle.com/technetwork/java/javase/downloads/index.html)

Remember, on cost of higher security you get lesser compatibility with older browsers.
TSplus HTML5 and Java web engineer

dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Re: Weak ephemeral Diffie-Hellman key

Post by dcipher » Thu Oct 08, 2015 2:15 pm

Thank-you for your suggestions however none of them made any difference. So since we are planning to get certificates for the servers this problem should be resolved when they are installed.

Simon

dcipher
Posts: 202
Joined: Fri Jul 25, 2014 6:22 pm

Re: Weak ephemeral Diffie-Hellman key

Post by dcipher » Fri Nov 06, 2015 3:29 pm

I do not know why these instructions did not work on our previous server but they did work on a new Windows 2012 Standard Server machine this week.

Thanks,
Simon

Post Reply