If SSL terminator is correctly configured, this code will never be executed. This is here only if SSL terminator is bad configured and redirects all queries to the backend server. (for examble in NGINX with ssl_verify_client off; instead of ssl_verify_client on;)

In this case, the x-client-cert-verified shows the SSL terminator resolution so if it's not accepted we shall revoke the query