I'm running the openssl simple server locally:
openssl s_server -accept 7654 -psk 000 -nocert -debug -state
and I try to connect to it:
# python3
Python 3.6.6rc1 (default, Jun 13 2018, 06:59:48)
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket, ssl, sslpsk
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(("localhost",7654))
>>> ssl_sock = sslpsk.wrap_socket(s, psk=000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/sslpsk/sslpsk.py", line 109, in wrap_socket
sock.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 1068, in do_handshake
self._sslobj.do_handshake()
File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:841)
Hi,
I'm running the openssl simple server locally:
openssl s_server -accept 7654 -psk 000 -nocert -debug -state
and I try to connect to it:
My server returns:
The Wireshark dissect shows me that the ClientHello does not contain any PSK-Ciphersuite:
The server then immediately sends a TLS Fatal Handshake Failure Response and closes the connection.