From 7847caaf22f0fadd5532fc6f0525bfd75ef72fef Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 24 Jan 2013 17:33:08 +0100 Subject: Add PSK example in examples/client.conf. --- lib/examples/client.conf | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/examples/client.conf b/lib/examples/client.conf index 1540bbe..a19b699 100644 --- a/lib/examples/client.conf +++ b/lib/examples/client.conf @@ -16,13 +16,24 @@ realm blocking-tls { cacertfile = "tests/demoCA/newcerts/01.pem" certfile = "tests/demoCA/newcerts/03.pem" certkeyfile = "tests/demoCA/private/cli1.key" - #pskstr = "sikrit psk" - #pskhexstr = "deadbeef4711" - #pskid = "Client_identity" - #pskex = "PSK" server { hostname = "srv1" service = "2083" secret = "sikrit" } } + +realm blocking-tls-psk { + type = "TLS" + timeout = 1 + retries = 3 + #pskstr = "sikrit psk" + pskhexstr = "deadbeef4711" + pskid = "Client_identity" + pskex = "PSK" + server { + hostname = "srv1" + service = "4433" + secret = "sikrit" + } +} -- cgit v1.1