I’m trying to implement a login system to sign into a website using public key authentication. I’m not sure if this is feasible.
This is what I plan to do:-
- While signing up, user’s public key is saved in the website.
- When the user tries to login later, the website asks the user for his corresponding private key.
- User is authenticated if the private key matches the public key which the user provided while signing up.
I have seen sites like startssl.com asking for user’s private key to verify their identity (see the screenshot attached). So what does it takes to implement such a system?

Just to clarify the flow