Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Problems with a setting certificates via OpenSSL in C++ (Windows)

6 views
Skip to first unread message

Jakob Bohm

unread,
Dec 5, 2011, 5:55:52 AM12/5/11
to
On 12/3/2011 8:22 PM, Jeffrey Walton wrote:
> On Fri, Dec 2, 2011 at 1:55 PM,<Hamid....@sungard.com> wrote:
>> 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.
> "3" is ERROR_PATH_NOT_FOUND
> (http://msdn.microsoft.com/en-us/library/cc231199%28v=prot.10%29.aspx).
>
>
A quicker way to check Windows error codes: Open a command prompt and
type this:

NET HELPMSG 3

______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Jeffrey Walton

unread,
Dec 5, 2011, 6:04:15 PM12/5/11
to
On Mon, Dec 5, 2011 at 7:35 AM, <Hamid....@sungard.com> wrote:
> 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.
https://groups.google.com/group/mailing.openssl.users/browse_thread/thread/da5110e4d45e6cf8
https://groups.google.com/group/mailing.openssl.users/browse_thread/thread/0066618e7a8cbef1

Jeff
0 new messages