aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/https.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/https.py')
-rw-r--r--rpkid/rpki/https.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/rpkid/rpki/https.py b/rpkid/rpki/https.py
index 3a91dccc..d969fb54 100644
--- a/rpkid/rpki/https.py
+++ b/rpkid/rpki/https.py
@@ -433,7 +433,14 @@ class http_server(http_stream):
except POW.SSLUnexpectedEOFError:
self.log("SSLUnexpectedEOF in tls_accept()")
self.close(force = True)
-
+ except POW.SSLErrorSSLError, e:
+ if "\n" in e:
+ for line in str(e).splitlines():
+ rpki.log.error(line)
+ raise POW.SSLErrorSSLError, "TLS certificate problem, most likely"
+ else:
+ raise
+
def handle_no_content_length(self):
self.handle_message()