Storing RSA and DES keys in SQL DB

2008-03-20 Thread Bhandari, Neelendra
Hi, We have a requirement to generate security keys and store them in DB by the hundreds. Another C++ application will read these keys, and use encryption with these keys for messages being sent to different destinations. I found an API to save these keys to files (PEM_write_RSAPrivateKey).

openssl compilation problem with vxworks-mipsle

2008-03-20 Thread samrat saha
Hi all, I am fed up with openssl compilation. I have tried every possible combination to compile openssl with vxworks-mipsle options. I am getting the following errors while compilation. In file included from cryptlib.h:65, from cryptlib.c:117: ../e_os.h:62:

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Thanks Steve. If this helps anyone fixing this issue here is the backtrace once SSL_accept hangs: SSL_accept ssl23_accept ssl23_get_client_hello ssl23_read_bytes BIO_read sock_read __read_nocancel Thanks On Thu, Mar 20, 2008 at 8:22 AM, Steve West [EMAIL PROTECTED] wrote: We experienced a

FW: Port to AIX

2008-03-20 Thread Michael Saladin
Hi all, my program uses openssl and is tested under HP-UX B.11.11, Solaris 8,9 and 10, and on a couple of Linux flavours. It works with all of them. I am right now porting my software to AIX 5.3, and now I seeem to have some problems with the openssl part. I use non-blocking sockets and use

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
Hi, I have setup an SSL server that works fine up to 400 connected clients. When I try to have more then 400 clients, then my server hangs in the SSL_accept call This happens very randomly, sometimes beyond 1000 connected clients... The server is dead once this happen and no other

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Hi David, My code looks like this: 1 while(1) 2 { 3r = SSL_accept(m_ssl); 4if (r 0) 5{ 6 break; 7} 8r = ssl_retry(r); 9if ( r = 0) 10 { 11

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
Hi David, My code looks like this: 1 while(1) 2 { 3r = SSL_accept(m_ssl); 4if (r 0) 5{ 6 break; 7} 8r = ssl_retry(r); 9if ( r = 0) 10 { 11

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
Hi David, On Thu, Mar 20, 2008 at 12:38 PM, David Schwartz [EMAIL PROTECTED] wrote: Hi David, My code looks like this: 1 while(1) 2 { 3r = SSL_accept(m_ssl); 4if (r 0) 5{ 6 break; 7} 8

Re: querry about content of the RSA key file

2008-03-20 Thread Marek . Marcola
Hello, I need to know the content of RSA key files (private and public both). is there any header that we write in these files? what all parameters(n,e,d,p,q) are written in each file? RSA key is encoded with ASN.1. Look at PKCS#1 specification for details. Best regards, -- Marek

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
Well, that is not true and I am sorry I did not give you the full code as it is quite complicated but the snipet you see above is called after a new connection is already accepted. So I have an outer loop that does a select and once a new connection is detected and accepted without

Re: SSL_accept hangs

2008-03-20 Thread Md Lazreg
On Thu, Mar 20, 2008 at 6:51 PM, David Schwartz [EMAIL PROTECTED] wrote: ready_sockets = ::select(m_max_socket + 1, rfds, 0, 0,tv); if (ready_sockets 0) { if (FD_ISSET(s-get_sock(),p-get_rfds())) { new_s-set_non_blocking(true); if

RE: SSL_accept hangs

2008-03-20 Thread David Schwartz
To Md Lazreg: I think I found it. ready_sockets = ::select(m_max_socket + 1, rfds, 0, 0,tv); if (ready_sockets 0) { if (FD_ISSET(s-get_sock(),p-get_rfds())) { new_s-set_non_blocking(true); /* GAK */ if (s-accept(new_s)) { /*