| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.4.2 Example server PSK connection
To set up a PSK server with gnutls-serv you need to create PSK
password file. This is illustrated in the example below, where a password
is provided at the prompt.
$ ./psktool -u psk_identity -p psks.txt Enter password: Key stored to psks.txt $ cat psks.txt psk_identity:88f3824b3e5659f52d00e959bacab954b6540344 $ |
After this, start the server pointing to the password file. We disable DHE-PSK.
$ ./gnutls-serv --pskpasswd psks.txt --pskhint psk_identity_hint \ --priority NORMAL:-DHE-PSK Set static Diffie-Hellman parameters, consider --dhparams. Echo Server ready. Listening to port '5556'. |
You can now connect to the server using a PSK client as in Example client PSK connection.
