Topic: Get Client Cert from TLS Handshake
Hi,
I want to verify that the client certificate belongs to a particular user that is logging in into a system. Is there a way to get the client's public key or certificate from the TLS handshake so that I can cross check it against a database that holds the user name-pubicKey/Cert or something like that. I am already verifying the peer with wolfSSL_CTX_set_verify. However I am unable to match it to the user loggin to the publicKey/Certificate which which is done at a later stage in my uathentication system because I am unable to get the public/Key Cert from the handshake. For now I am sending the client certificate over the TLS link but it does not seem to be the most appropriate solution. Any Suggestions.
Thank you for all your help.
cfarrin