I'm trying to retrieve from the client browser a client certificate to authenticate the user. I know i can create a folder with the same name as the controller and, with IIS, set its SSL settings to require a client certificate. In fact, I've tried this and it worked, but i can't take this approach because there are other actions inside the controller that don't need to ask the user for a client certificate. Also i need to ask the client certificate in different controllers.
So, do you know a clean (if possible) way to prompt the user to select a client certificate?