-
Notifications
You must be signed in to change notification settings - Fork 645
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
Better error message when handshaking fails #160
Comments
I assume this is rustls as a client? The "no overlapping ciphersuites" error case is expected to work like this:
So, to clarify:
|
Thank you very much for the detailed response, it's much appreciated!
I think this was my problem. I am using a I guess this is what confused me (an amateur):
I'm not sure what you think the best way to fix these hangups is, if we should bother at all, but here are some ideas I have:
As a novice in regards to both TLS and rustls, I may be totally barking up the wrong tree with these ideas. Let me know what you think, and feel free to close the issue. I'm willing to help out on implementing any improvements. Thanks again. EDIT: I remembered another thing; I turned logging on (trace) but never saw any message about handshake failing. Is that something that could be logged? |
Actually, this does appear to be a bug; albeit one I can't reproduce. Can you post your code? You shouldn't get an |
I'm trying to connect to a Mumble server at
I've verified that the standard Mumble client can connect, however I get a panic:
This reproduces @DenialAdams's issue. In the Mumble log it indicates that there is no shared cipher suite. Is there a Edit: It might simply have been that they didn't share any cipher suites. I stumbled on this issue and updated the Mumble server to 1.3 which now gives the error |
So I'm trying to do the same thing as the above posters (communicate to a Mumble server); is there any way to make it work with a 1.2.x server? Something I can add to the My default for 1.2.18 seems to be:
|
When trying to understand why a TLS connection was failing, all I had to work with was an
IoError(Kind(UnexpectedEof))
when I tried towrite
. I had to look on the serverside logs to see the reason:Apr 03 02:22:43 murmur murmurd[24]: <W>2018-04-03 02:22:43.470 1 => <14:(-1)> Connection closed: Error during SSL handshake: error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared cipher [13]
If rustls could have told me handshaking failed because of no shared cipher instead of merely giving me
UnexpectedEof
, it would have been helpful and certainly saved me some time.I'm not familiar with the handshaking proces unfortunately, so if a detailed error message is just not possible for some reason, that's totally fair too.
The text was updated successfully, but these errors were encountered: