-
Notifications
You must be signed in to change notification settings - Fork 67
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
handshake_failure #113
Comments
you need to specify key and certificate for the server, the |
@tomato42 how do you have to specify this? |
|
No. I gave it a go. Here were my observations: The tests folder has some certs:
I think the test server is somehow consuming those certificates: Anyway I still manually provided the certs: I ran the test client as I did before (without certs) and the issue replicated. Then I ran the client it with the certs: Still the issue replicates. |
Sorry, I completely confused issues. I have no idea why I wrote the #113 (comment) Can you explain what is the issue exactly? I'm guessing that you have no if that is the case, can you try to reproduce the issue with current master of https://github.com/tomato42/tlslite-ng ? (please uninstall any |
That is explained above. The client runs a battery of test which are numbered. That specific error happens at Test 26.b. (You shouldn't run
I've downloaded your repo installed it and ran the test...and it went fine. |
then can I suggest switching to it? it's a superset of the |
Okay. I will switch. But my goal is understand ssl/tls. Someone pointed me to this repo. But this is a library where most of the stuff is abstracted. But so is your repo. I want to understand the handshaking process through code. Can you guide me here? Ps: This was my actual need. |
I don't know of any project like this if you want to understand what each party does in the handshake, you may actually have better luck with taking a look at the library I constructed on top of I'm building it to test behaviour of servers, so it has fairly simple examples of RSA, DHE-RSA and ECDHE-RSA key exchange. It still has quite a few levels of indirection, but I think it does limit the complexity for a particular situation and at least limits the amount of code you have to read to understand what is happening for any particular case. anyway, this is unrelated to the original bug report so we probably should move from this issue tracker - feel free to file documentation bugs on |
hi @tomato42 , is there a planned fix here? i have version 0.4.9 and have reproduced the problem thanks |
I'm working on tlslite-ng only and the fix is already released there, so from my point of view the issue is closed (unless you are able to reproduce it there with either the 0.5.1 or current 0.6.0-beta1, then please open an issue on its issue tracker) |
On Thu, Aug 11, 2016 at 7:59 AM, kasserater [email protected]
I'd apply a fix to tlslite, if someone submits a PR. Trevor |
What info is needed to open a PR? |
Pull Request is a set of patches, it's a proposed solution to the issue, not just submission of a new bug
because I don't consider waiting half a year for a pull request review to be reasonable; especially not when I want to build on top of it the TLSv1.3 test suite and the standard is in the last drafts I am writing code an order of magnitude faster than Trevor was able to review it.
that's for you to decide, obviously I'm biased, but in the time I (and few others) nearly doubled the amount of changes to the library since the fork (we're short 24 patches to doubling, 20 of which are waiting for review or slight reworking already), adding a lot of new features or simplifying old code, all while improving code quality and increasing test coverage. Or in other words, tlslite-ng supports the most commonly used cipher on the Internet, the TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tlslite does not. |
@tomato42 i reproduced the issue with 0.5.2 |
0.5.1 has same result |
If you can reproduce it, and you don't have tlslite installed (don't install tlslite and tlslite-ng side by side), then please file a bug in the tlslite-ng tracker and include the following information:
|
Totally reproducible. Will open |
hi tls-dev:
i successfully install the tls, and run the test-suite like this:
./tlstest.py server localhost:4443 .
and open another shell, type
./tlstest.py client localhost:4443 .
then i get an error log like this. could you please help me to solve this problem.
Traceback (most recent call last):
File "./tlstest.py", line 981, in
clientTestCmd(sys.argv[2:])
File "./tlstest.py", line 478, in clientTestCmd
connection.handshakeClientCert()
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 308, in handshakeClientCert
for result in handshaker:
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 324, in _handshakeClientAsync
for result in self._handshakeWrapperAsync(handshaker, checker):
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 1777, in _handshakeWrapperAsync
for result in handshaker:
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 418, in _handshakeClientAsyncHelper
for result in self._clientGetServerHello(settings, clientHello):
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsconnection.py", line 559, in _clientGetServerHello
HandshakeType.server_hello):
File "/usr/local/lib/python2.7/dist-packages/tlslite/tlsrecordlayer.py", line 722, in _getMsg
raise TLSRemoteAlert(alert)
tlslite.errors.TLSRemoteAlert: handshake_failure
The text was updated successfully, but these errors were encountered: