From d56637113092ebc6721601812510ef5e3e5126e4 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 18 Jan 2016 03:10:10 -0500 Subject: tests: Add a test for pinnedpubkey fail even when insecure Because disabling the peer verification (--insecure) must not disable the public key pinning check (--pinnedpubkey). --- tests/data/test2048 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/data/test2048 (limited to 'tests/data/test2048') diff --git a/tests/data/test2048 b/tests/data/test2048 new file mode 100644 index 000000000..eb2b1df75 --- /dev/null +++ b/tests/data/test2048 @@ -0,0 +1,40 @@ + + + +HTTPS +HTTP GET +PEM certificate + + + +# +# Server-side + + + +# +# Client-side + + +SSL +SSLpinning + + +https Server-localhost-sv.pem + + +pinnedpubkey no-match must fail even when insecure + + +--insecure --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --pinnedpubkey %SRCDIR/certs/Server-localhost.nn-sv.pub.der https://localhost:%HTTPSPORT/2034 + + + +# +# Verify data after the test has been "shot" + + +90 + + + -- cgit v1.2.3