Hi,

I am trying to make a simple C++ (64-bit) client program that can establish a 
SSL connection with a remote server using OpenSSL on windows-7. I can 
successfully execute the followings to create a new context block;

SSL_library_init();
SSL_load_error_strings();
meth=SSLv23_client_method();
ctx=SSL_CTX_new(meth);

However, when I try to read the certificate files with 
SSL_CTX_use_certificate_file, I get errors the funcion returns "3". I tried to 
search on google and in different forums but was not able to find the exact 
problem. Please have a look on the attached sample program along with the 
certifcates, and let me know if I am doing something wrong.

Thank you.

P.S. I have highlighted the "problem area" in the .cpp file.

Kind Regards,
Hamid Shahid

Attachment: certs.rar
Description: certs.rar

Reply via email to