--- httpserver.py 2012-08-08 18:42:52.000000000 -0700
@@ -443,7 +443,7 @@
else:
return self._finish_time - self._start_time
- def get_ssl_certificate(self):
+ def get_ssl_certificate(self,binary_form=False):
"""Returns the client's SSL certificate, if any.
To use client certificates, the HTTPServer must have been constructed
@@ -461,7 +461,7 @@
"""
try:
- return self.connection.stream.socket.getpeercert()
+ return self.connection.stream.socket.getpeercert(binary_form=binary_form)
except ssl.SSLError:
return None