1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# The curve keys where generated by running:
# `$ cargo run --example gen_curve_cert`
auth:
# The public keys allowed to authenticate. Note that this is
# the client's public key.
curve_registry:
- "n%3)5@(3pzp)v8yt6RW3eQVq5OQYb#TEodD^6oA^"
client:
# In a real life scenario the server would have a known addr.
#connect:
# - tcp: "127.0.0.1:3000"
heartbeat:
interval: 1s
timeout: 3s
ttl: 3s
send_high_water_mark: 10
send_timeout: 300ms
recv_high_water_mark: 100
recv_timeout: 300ms
mechanism:
curve_client:
client:
public: "n%3)5@(3pzp)v8yt6RW3eQVq5OQYb#TEodD^6oA^"
secret: "JiUDa>>owH1+mPTWs=>Jcyt%h.C1E4Js>)(g{geY"
# This is the server's public key.
server: "et189NB9uJC7?J+XU8JRhCbF?gOP9+o%kli=y2b8"
server:
# Here we use a system defined port so as to not conflict with the host
# machine. In a real life scenario we would have a port available.
bind:
- tcp: "127.0.0.1:*"
heartbeat:
interval: 1s
timeout: 3s
ttl: 3s
mechanism:
curve_server:
secret: "iaoRiIVA^VgV:f4a<@{8K{cP62cE:dh=4:oY+^l("