Skip to content

Commit c88e383

Browse files
committed
fix: return proper error message when no certificate is presented
1 parent 81b6228 commit c88e383

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/Core/Tornado/Server/private/BaseRequestHandler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ def _authzSSL(self):
739739
elif balancer:
740740
if self.request.headers.get("X-Ssl_client_verify") == "SUCCESS" and self.request.headers.get("X-SSL-CERT"):
741741
chainAsText = unquote(self.request.headers.get("X-SSL-CERT"))
742+
else:
743+
return S_ERROR(DErrno.ECERTFIND, "Valid certificate not found.")
742744
else:
743745
return S_ERROR(DErrno.ECERTFIND, "Valid certificate not found.")
744746

0 commit comments

Comments
 (0)