aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r--libpathod/pathod.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index ce64acf9..ac56619b 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -96,6 +96,17 @@ class PathodHandler(tcp.BaseHandler):
self.info(s)
return False, dict(type = "error", msg = s)
+ clientcert = None
+ if self.clientcert:
+ clientcert = dict(
+ cn = self.clientcert.cn,
+ subject = self.clientcert.subject,
+ serial = self.clientcert.serial,
+ notbefore = self.clientcert.notbefore.isoformat(),
+ notafter = self.clientcert.notafter.isoformat(),
+ keyinfo = self.clientcert.keyinfo,
+ )
+
request_log = dict(
path = path,
method = method,
@@ -103,6 +114,7 @@ class PathodHandler(tcp.BaseHandler):
httpversion = httpversion,
sni = self.sni,
remote_address = self.client_address,
+ clientcert = clientcert
)
try: