Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Kestrel client certificate - show error page on invalid certificate

$
0
0

I implemented a client certificate authentication in my asp net core application and now I'm wondering if there is any possibility to return a Error Page if the Certificate is rejected by the default validating method of Kestrel.

At the moment Kestrel does not send any response which leads to an ERR_EMPTY_RESPONSE Message in Google Chrome. I would like to provide some information to the user, so he knows why he doesn't receive any response.

When the validation fails, Kestrel reject the connection and I think a connection refused response would by more useful, than an empty response.

Is there anything I missed?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>