Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share

I got this error in nginx error log:

SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking

I use Let's Encrypt currently. Any ideas to solve this problem? Thank you, guys.

like image 503
Justin Avatar asked Jan 23 '21 01:01

Justin


People also ask

Why is Nginx not using my SSL ciphers?

Note that in this case, I am running an Nginx web server with an SSL certificate from Let’s Encrypt. The client is using really old hardware. As a result, it is unable to use your SSL ciphers. A client is deliberately attempting (but failing) to use an older insecure SSL protocol.

Why am I getting SSL protocol errors in a client?

A client is deliberately attempting (but failing) to use an older insecure SSL protocol. Either way, you should not be concerned if you see this error every now and again. This is just a case of Nginx doing its job.

Why am I getting SSL ciphers not working?

As a result, it is unable to use your SSL ciphers. A client is deliberately attempting (but failing) to use an older insecure SSL protocol. Either way, you should not be concerned if you see this error every now and again.

How to configure Diffie Hellman key exchange in Nginx?

Actually you have used the option ssl_ecdh_curve to configure Diffie Hellman key exchange in Nginx but you have not provided a parameter file. Therefore you have to use the option ssl_dhparam and must create a file with openssl.


1 Answers

This isn't your problem.

The best thing you can do in this situation is just to keep your server reasonably updated and secured.

At best for you, the client side of a request was running seriously outdated software, and at worst your server is simply being scanned for vulnerabilities by compromised devices connected to the internet.

Personally I lean in the direction of this being scanning, as I myself see these errors on a private development server, to which only I should ever have a legitimate reason to connect to, yet I see a ton of IP addresses mentioned by the error from around the world.

Similar question and answer has already been provided here: https://serverfault.com/questions/905011/nginx-ssl-do-handshake-failed-ssl-error1417d18cssl/905019

Stay safe.

like image 132
stack3r Avatar answered Sep 19 '22 14:09

stack3r