PSK examples
Hello,
I have tried to set up a connection using PSK but I get this error
message all the time:
*** Fatal error: A TLS fatal alert has been received.
*** Received alert [40]: Handshake failed
*** Handshake has failed
GnuTLS error: A TLS fatal alert has been received.
I took the examples from the documentation.
the server:
gnutls-serv -d 10 --pskpasswd psks.txt \
--pskhint psk_identity_hint
the client:
gnutls-cli -p 5556 localhost --pskusername psk_identity \
--pskkey key
(where epsk_identity and key are the same as in the psks.txt file)
I have also tried to use "--priority +PSK:+DHE-PSK" both for the client
and for the server without any difference.
Do you have any idea? What am I missing?
As proof that I have read the documentation, I have attached a small patch.
Thanks,
Giuseppe
From
009ccba073016787084a28047b633841d6784e54 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <gscrivano@gnu.org>
Date: Wed, 25 May 2011 18:28:11 +0200
Subject: [PATCH] Fix example in the documentation.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>