summaryrefslogtreecommitdiffstats
path: root/tests/auto/network/support/modules/network_test_server/files/ssl/openssl_server_psk.sh
blob: 915ef9816331488370e12e880e6df983b2681474 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

PSK="1a2b3c4d5e6f"
SERVERHINT="QtTestServerHint"

# openssl s_server will try to read from stdin; if it gets EOF, it will quit
# therefore, we can't simply redirect /dev/null as its stdin,
# but we need a small trick

tail -f /dev/null 2> /dev/null < /dev/null | openssl s_server -quiet -nocert -psk "$PSK" -psk_hint "$SERVERHINT" > /tmp/logopenssl 2>&1 &