Add tests/demoCA and use certs and key in there for the examples.
[libradsec.git] / lib / examples / client.conf
index fe2ded5..64a70b6 100644 (file)
@@ -1,10 +1,26 @@
-config blocking {
+dictionary = "/usr/share/freeradius/dictionary"
+
+realm blocking-udp {
     type = "UDP"
+    timeout = 2
+    retries = 2
     server {
-        hostname = "localhost"
+        hostname = "127.0.0.1"
        service = "1820"
        secret = "sikrit"
-       timeout = 1         /* optional */
-       tries = 10            /* optional */
+    }
+}
+
+realm blocking-tls {
+    type = "TLS"
+    timeout = 1
+    retries = 3
+    cacertfile = "tests/demoCA/newcerts/01.pem"
+    certfile = "tests/demoCA/newcerts/02.pem"
+    certkeyfile = "tests/demoCA/private/c1key.pem"
+    server {
+        hostname = "localhost"
+       service = "2083"
+       secret = "sikrit"
     }
 }