Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using managed openSsl wrapper for mutual authentication in my project. What I have done till now is sent the client certificate by calling AuthenticateAsClient function of SslStream and I am getting server certificate along with 3 chain certificate in callback functions from server but I don't know what to do with this server certificate. Now I have two questions

1. Why am I getting "error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate" error when I am calling AuthenticateAsClient function even if I have Root CA installed on local machine?

2. How to add server certificate which I have got in callback function from server into key store using managed openssl or what else need to do with this server certificate to finish mutual authentication?

can anyone please help me to complete this mutual authentication process using openSsl.

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900