project-everest / mitls-fstar

Verified implementation of TLS 1.3 in F*
https://www.mitls.org
Other
173 stars 16 forks source link

Cannot connect to miTLS #168

Open herbertschulz opened 7 years ago

herbertschulz commented 7 years ago

Hello! I cannot connect to miTLS, no matter what configuration (cipher suite, protocol version etc.) I choose with the client. I connect via: ./mitls.exe -s 127.0.0.1 4443 -v 1.2 ciphers ECDHE-RSA-AES256-GCM-SHA384

...and always get the error:

Fatal error: exception File "output/TestHandshake.ml", line 99, characters 14-19: Pattern matching failed

What could be done here? Thnx

s-zanella commented 7 years ago

I would need some additional information to debug this:

herbertschulz commented 7 years ago

Thank you for your reply. Point 1 is true.

Actually, my client is a Java application (TLS-Attacker). Usually the command... config.setConnect("127.0.0.1:" + Port); ...suffices to establish a normal handshake for other applications for Port (like OpenSSL etc.). But not for miTLS.

(I got the same error when running wolfSSL as a client and get the error: err = -308, error state on socket...)

s-zanella commented 7 years ago

Did you fix the missing dash in ciphers and append -sigalgs RSA+SHA256?

herbertschulz commented 7 years ago

Yes. Same results, even with other ciphers.