blob: 5cf78bc66fc7eef4a8a7675e724e83ac7a8816cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
../../../../botan tls_server ../rsa2048cert.pem ../rsa2048key.pem --port=4434 --policy=../../../../tls-policy/BSI_TR-02102-2.txt > output/server_policytest.log 2>&1 &
botan_pid=$!
java -jar ../TLS-Attacker/Runnable/target/TLS-Attacker-1.2.jar -loglevel INFO testtls_server -policy ../../../../tls-policy/BSI_TR-02102-2.txt -connect localhost:4434 -tls_timeout 1000
rc=$?
if [ $rc -eq 0 ]; then
echo Policy tests finished without failures
else
echo '\n\nPolicy tests failed. See the recent error and the server log output.'
# cat output/server_policytest.log
fi
kill $botan_pid
exit $rc
|