Hi, Deepak.
You can try few things: 1. Check whether you passing certificate file with valid path to the function. 2. Use SSL_get_error() after this function to fetch the exact error from errors stack (you can use it in loop, as maybe there are few errors regarding this). Before calling it - call SSL_load_error_strings() at the beginning of the application. 3. Documentation on SSL_CTX_use_certificate_file() and SSL_get_error() available online from www.openssl.org/docs or offline from your $SSL_ROOT_DIR/doc/ssl (in pod format, if you're on Unix - you can ran util/pod2man to get its man pages). 4. You can look at samples at demos/ssl. Regards, Sharon Hezy. -->-----Original Message----- -->From: Deepak Saini [mailto:[EMAIL PROTECTED]] -->Sent: Wed, May 29, 2002 10:05 AM -->To: [EMAIL PROTECTED] -->Subject: Re: Welcome to openssl-dev --> --> -->hi frinedz! --> -->hope u can help me with this.. -->the following function call is returning me a value less than 0... -->what exactly does this function does. --> --> err = SSL_CTX_use_certificate_file(ctx, "servcert.pem", -->SSL_FILETYPE_PEM); --> -->or may be u can tell me where to look for info on this -->regards -->Deepak Saini --> --> -->_____________________________________________________________ -->_________ -->OpenSSL Project -->http://www.openssl.org -->Development Mailing List -->[EMAIL PROTECTED] -->Automated List Manager -->[EMAIL PROTECTED] --> ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
