PEM_read_RSAPrivateKey returns null

2008-02-13 Thread Dima Rusyy
Hello! I am unable to determine why I can't load private key using the following code: - FILE* file = fopen(keyFile, "r"); if(!file){ fprintf(stderr, "Failed to open file %s.\n", keyFile); exit

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Thanks for reply. In fact, I'm not sure why apache closes connection even if I set KeepAlive to On in httpd.conf. If I send "HTTP/1.1" request will it also close the socket after reply? -Dima David Schwartz wrote: > > >> Hello! >> >> I use openssl to work with apache server via https.

RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Thanks for reply. In fact, I'm not sure why apache closes connection even if I set KeepAlive to On in httpd.conf. If I send "HTTP/1.1" request will it also close the socket after reply? -Dima David Schwartz wrote: > > >> Hello! >> >> I use openssl to work with apache server via https.

Re: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hi Marek! Marek.Marcola wrote: > > Hello, >> I use openssl to work with apache server via https. >> But I see a strange situation when second and third calls to send() in > my test-case read >> 0 bytes from socket. >> Can you provide here any help? > You should not use names like "send" in your

SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-14 Thread Dima Rusyy
Hello! I use openssl to work with apache server via https. But I see a strange situation when the second and the third calls to send() in my test-case read 0 bytes from socket. Can you provide here any help? I use 'Fedora Core 7 x86' and openssl-0.9.8e. Thanks! Here is a test-case: #include

SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write

2008-01-10 Thread Dima Rusyy
Hello! I use openssl to work with apache server via https. But I see a strange situation when second and third calls to send() in my test-case read 0 bytes from socket. Can you provide here any help? I use 'Fedora Core 7 x86' and openssl-0.9.8e. Thanks! -Dima #include #include #include #inclu