X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Ftests-normal.sh;fp=tests%2Ftests-normal.sh;h=314d798c0b88be60d73a2ea26fca90c9a2a2046d;hb=580b6777a6a264dc18ecb1810b3472307d6106a4;hp=b059fac21fde741f744cf2ed2420f5fec2025c31;hpb=2f8f017c377f71553730e8a17fb486cdae836175;p=tlsproxy%2Ftlsproxy.git diff --git a/tests/tests-normal.sh b/tests/tests-normal.sh index b059fac..314d798 100755 --- a/tests/tests-normal.sh +++ b/tests/tests-normal.sh @@ -48,17 +48,14 @@ test_invalid_certificate # Create the proxy certificate. $srcdir/../src/tlsproxy-add localhost $srcdir/server.pem \ >/dev/null 2>/dev/null -rm -f certificate-localhost-server.pem echo missing server certificate +mv certificate-localhost-server.pem .pem client localhost 4712 invalid || abort +mv .pem certificate-localhost-server.pem test_proxy_successful test_invalid_certificate -# Create the proxy and server certificate. -$srcdir/../src/tlsproxy-add localhost $srcdir/server.pem \ - >/dev/null 2>/dev/null - echo normal connection # 'localhost' is the CN of tlsproxy's certificate. client localhost 4712 localhost || abort @@ -88,17 +85,14 @@ test_invalid_certificate # Create the proxy certificate. $srcdir/../src/tlsproxy-add localhost $srcdir/server.pem \ >/dev/null 2>/dev/null -rm -f certificate-localhost-server.pem echo mitm missing server certificate +mv certificate-localhost-server.pem .pem client localhost 4712 invalid || abort +mv .pem certificate-localhost-server.pem test_proxy_successful test_invalid_certificate -# Create the proxy and server certificate. -$srcdir/../src/tlsproxy-add localhost $srcdir/server.pem \ - >/dev/null 2>/dev/null - echo mitm normal connection client localhost 4712 invalid || abort test_proxy_successful