test30-tls-protos-tls1_3.sh (hitch-1.5.2) | : | test30-tls-protos-tls1_3.sh (hitch-1.6.0) | ||
---|---|---|---|---|
#!/bin/sh | #!/bin/sh | |||
# Test TLS 1.3 availability. | # Test TLS 1.3 availability. | |||
. hitch_test.sh | . hitch_test.sh | |||
if ! openssl s_client -help 2>&1 | grep -q -e "-tls1_3"; | if ! openssl s_client -help 2>&1 | grep -q -e "-tls1_3" | |||
then | then | |||
skip "Missing TLSv1.3 support" | skip "Missing TLSv1.3 support" | |||
fi | fi | |||
# only TLSv1.3 | # only TLSv1.3 | |||
cat >hitch.cfg <<EOF | cat >hitch.cfg <<EOF | |||
backend = "[hitch-tls.org]:80" | backend = "[hitch-tls.org]:80" | |||
frontend = "[*]:$LISTENPORT" | frontend = "[*]:$LISTENPORT" | |||
pem-file = "${CERTSDIR}/default.example.com" | pem-file = "${CERTSDIR}/default.example.com" | |||
tls-protos = TLSv1.3 | tls-protos = TLSv1.3 | |||
EOF | EOF | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |