2 ms·
Nothing prevents delaying auth with a client cert until the user enters a login. That's what a great lot of people don't understand about TLS. Your cert ID don
by baybal2 8y ago
Nothing prevents delaying auth with a client cert until the user enters a login.
That's what a great lot of people don't understand about TLS. Your cert ID don't have to amount to user ID.
You can let your user enter login as usual in a web form, or use a stored cookie for that, and only then look up if client cert matches the user record.
Moreover, for as long as you can be confident about cookie security, you can forego authenticating every connection in favour of using a session cookie once you did a smartcard auth.
One last tip: ensure keepalives are handled properly, so you don't have to reauth TCP connections over and over.
That's the not so secret sauce to fast client side certificate auth.