Re: random crash in getrn function (ssl, crypto).

2009-09-03 Thread Dan Ribe
Got the fix for this ... Following callbacks must be implemented by the developer if CRYPTO library has to be used in the multi-threaded environment. CRYPTO_set_locking_callback()CRYPTO_set_id Cheers ! On Thu, Sep 3, 2009 at 10:20 AM, Dan Ribe wrote: > Hi Everyone, > > I am using g

random crash in getrn function (ssl, crypto).

2009-09-02 Thread Dan Ribe
Hi Everyone, I am using gsoap stub code on Mac & facing below mentioned crash randomly. It seems that crash happens only if some error occurs in tcp_connect & while getting error value. Any pointers on this ? What may be causing this behavior ? Crash stack: Thread 0 Crashed: Dispatch queue: co

Re: Reading private key from Memory Buffer.

2008-10-01 Thread Dan Ribe
Thanks guys, Removing the semi colon fixes the problem ! Cheers :) On Thu, Oct 2, 2008 at 3:46 AM, Kelly, Tom <[EMAIL PROTECTED]> wrote: > > > David Schwartz wrote: > >> "09dirkd+sRoXWShF8ctVVb4B1PAFTOBEa8diickehnAyEq6KhzLWpQqhqCnylETw\r\n" >>> "Drys2uVaAzmRhS6tGJ2fdwPnlSLJrQbHuP938Bkyx

Re: Reading private key from Memory Buffer.

2008-10-01 Thread Dan Ribe
= BIO_new_mem_buf(key, keyLength); > >EVP_PKEY *pktmp = NULL; > pktmp = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL); > >if (pktmp == NULL) { >char buffer[120]; > >ERR_error_string(ERR_get_error(), buffer); >

Re: Reading private key from Memory Buffer.

2008-10-01 Thread Dan Ribe
Tom, Tried your suggestion, but it is not working ! Any other clues on this ? Thanks much, Dan On Wed, Oct 1, 2008 at 7:04 PM, Kelly, Tom <[EMAIL PROTECTED]> wrote: > > > Dan Ribe wrote: > >> Hi, >> >> I am trying to read the private key from the memory

Reading private key from Memory Buffer.

2008-10-01 Thread Dan Ribe
Hi, I am trying to read the private key from the memory buffer (code snippet below), But PEM_read_bio_PrivateKey() always returns an error : OpenSSL error: error:0906D06C:PEM routines:PEM_read_bio:no start line Can anyone please point out what I am doing wrong here. I am pretty new to OpenSSL, so

Re: How to protect the private key !

2008-09-17 Thread Dan Ribe
I am using the private key just to authenticate the client. Once server has authenticated the client (by using the public key of client), it will give access to that client. So I will say that in this case users of my client application need not to have access to the private key (becasue this authe

How to protect the private key !

2008-09-15 Thread Dan Ribe
Hi, I have a client/server application, where client authenticate itself by signing a random string (sent by server) using its private key. Whole logic is working fine for me. I am using PEM_read_PrivateKey() function to read the private key from the key file which is stored on the disk. As per t

Reading private key from the file.

2008-08-29 Thread Dan Ribe
Hello Everyone, I am new to RSA/SHA1 & need some help from your side ! We have a client application on windows & I am in process to port that on Mac. I am facing some problems with the RSA/SHA1 authentication on Mac. Windows logic: On windows side we have a client key file "cspkb.dat" which we a

Re: SSL_connect failing with error -1

2008-04-11 Thread Dan Ribe
Thanks. It worked. Now i am able to communicate with the server using https. I have done changes like : from: #define SOAP_SSL_DEFAULT(SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION | SOAP_SSLv3_TLSv1) to: #define SOAP_SSL_DEFAULT SOAP_SSL_NO_AUTHENTICATION in stdsoap2.h. Once we have the pro

Re: SSL_connect failing with error -1

2008-04-11 Thread Dan Ribe
Thanks for the response. this was useful. Now I got the readable message as : *** error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed I have checked this & server certificate is expired. As this is an internal server for us, so as of now i want to ignore this error &

Re: SSL_connect failing with error -1

2008-04-10 Thread Dan Ribe
Thanks for the reply. I really appreciate it ! I have tried initializing the library, but still facing same problem. - Is there anyway to decode the error string "error:0001::lib(0) :func(0) :reason(1)", to find out what is actually going wrong ? means what does reason(1) stands here for ? - Is

SSL_connect failing with error -1

2008-04-10 Thread Dan Ribe
Hello, I am facing some problem when trying to use a https service. SSL_connect() is failing with error -1 (in stub code ...generated using gsoap ... code snippet below), which means some fatal error occured at the protocol level or connection failure occured. Further getting the SSL error code (