Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL failure(error:00000005:lib(0):func(0):DH lib) if client/worker closes socket connection #28

Open
p-alik opened this issue Oct 21, 2016 · 6 comments

Comments

@p-alik
Copy link
Collaborator

p-alik commented Oct 21, 2016

As mentioned in groups gearmand running with ssl support complains permanently about failed DH key exchange.

SSL failure(error:00000005:lib(0):func(0):DH lib) errno:0

SSL_CTX_set_cipher_list should be implemented in gearmand in proper way to solve the issue

@esabol
Copy link
Member

esabol commented Oct 21, 2016

I wonder if "DH lib" part of that error message might be a red herring. Check out the following links:

https://groups.google.com/d/msg/mailing.openssl.users/CcgtnRGpsZ0/ekdRCZFzybgJ
http://stackoverflow.com/questions/13686398/ssl-read-failing-with-ssl-error-syscall-error

The second link suggests this could be the result of calling SSL_read() with a buffer size of 0?

Alternatively, here are some OpenSSL links about DH which may be helpful:

http://stackoverflow.com/questions/23479376/openssl-ssl-accept-error-5
https://wiki.openssl.org/index.php/Diffie_Hellman
https://wiki.openssl.org/index.php/Elliptic_Curve_Diffie_Hellman

And here's some sample SSL server code which implements DH key exchange:

http://www.josuegomes.com/codeblog/dhserver.htm

@p-alik p-alik changed the title Diffie-Hellman Key Exchange failes in gearmand SSL CTX SSL failure(error:00000005:lib(0):func(0):DH lib) if client/worker closes socket connection Oct 26, 2016
@p-alik
Copy link
Collaborator Author

p-alik commented Oct 26, 2016

I replaced misleading title of the issue because - in my case - the message SSL failure appears only if client/worker closes connection to gearmand.

@esabol
Copy link
Member

esabol commented Nov 19, 2016

FWIW, I tried setting the SSL cipher list in my clients and workers to "DEFAULT:!DH", and I still get this error.

@p-alik
Copy link
Collaborator Author

p-alik commented Mar 20, 2017

io.cc writes the log message. errno:%d should be remove in the line because error code is already a part of the message

@jayhooly
Copy link

Trying to log into SIPhone Biz for work,
I keep getting this message,
'siphone_biz error:00000005:lib(0):func(0):dh lib'
anyone know what this is?

@esabol
Copy link
Member

esabol commented Apr 21, 2022

anyone know what this is?

This repo doesn't have anything to do with "SIPhone Biz", but it's basically an error message from the OpenSSL library used by the software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants