-
Notifications
You must be signed in to change notification settings - Fork 140
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
Decode error #185
Comments
Hey,
You can pass this xml file to TLS-Client.jar with |
I assume this is an issue in Wireshark as OpenSSL is able to process our message correctly. Does it work if you use both OpenSSL s_client and s_server with PSK? |
Description:
I am attempting to perform a TLS handshake using a PSK cipher (TLS_PSK_WITH_AES_256_CBC_SHA), and I’m encountering issues where the OpenSSL server sends a "Decode Error" alert at the end of the handshake. Additionally, when trying to decrypt the captured trace in Wireshark, only the "Finished" message from the OpenSSL server is being decrypted successfully.
Scenario:
TLS-Attacker Client Command:
java -jar apps/TLS-Client.jar -connect 127.0.0.1:4433 -version TLS12 -config client_config.xml -cipher TLS_PSK_WITH_AES_256_CBC_SHA -debug
OpenSSL Server Command:
openssl s_server -tls1_2 -accept 4433 -nocert -psk 316132623363346435653666 -psk_identity Client_Identity -cipher PSK-AES256-CBC-SHA -keylogfile /tmp/.ssl-key.log -no_ticket
client_config.xml
server_config.xml
Observations:
The handshake is initiated successfully, but at the end, the OpenSSL server sends an Alert(Decode Error).
When trying to decrypt the trace in Wireshark, it is only able to decrypt the "Finished" message sent by the OpenSSL server.
In addition, in Wireshark it appears the Decrypted TLS tag and the packet seems to be fine:
Any guidance or support would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: