Don't do client certificates in restricted mode.

This commit is contained in:
Solderpunk 2020-05-12 22:23:22 +02:00
parent 8af6d9e478
commit 08bc6e2102
1 changed files with 8 additions and 0 deletions

View File

@ -404,6 +404,14 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
return
# Client cert
elif status.startswith("6"):
# Don't do client cert stuff in restricted mode, as in principle
# it could be used to fill up the disk by creating a whole lot of
# certificates
if self.restricted:
print("The server is requesting a client certificate.")
print("These are not supported in restricted mode, sorry.")
return
# Transient certs are a special case
if status == "61":
print("The server is asking to start a transient client certificate session.")