aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r--test/test_pathoc.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index 38d3754a..2c86df11 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -45,6 +45,19 @@ class TestDaemonSSL(_TestDaemon):
d = json.loads(content)
assert d["log"][0]["request"]["sni"] == "foobar.com"
+ def test_clientcert(self):
+ c = pathoc.Pathoc(
+ "127.0.0.1",
+ self.d.port,
+ ssl = True,
+ clientcert = tutils.test_data.path("data/clientcert/client.pem")
+ )
+ c.connect()
+ c.request("get:/p/200")
+ _, _, _, _, content = c.request("get:/api/log")
+ d = json.loads(content)
+ assert d["log"][0]["request"]["clientcert"]["keyinfo"]
+
class TestDaemon(_TestDaemon):
ssl = False