OpenSSL and multiple threads

2006-06-25 Thread Leon
Hi, I wrote a server app to use multiple threads. Each thread has it's own SSL context and perform all the socket (socket,accept) and SSL (SSL_accept) tasks. I implemented the dynamic lock mechanism for multi thread support. I can start the server with the 1000 threads (one for each required port

Private Key Type and PEM Length

2006-06-25 Thread Sudhir Voona
Hi All,Is there an OpenSSL API which would give me the Private Key Type and its PEM Length if I pass the buffer containing the Private Key in DER /PEM format to it ??Can anyone tell me how to get the Private Key Type(DSA /RSA ) and its PEM Length  given the buffer containing the Private Key in PEM

Re: Accessing Manual Pages in openssl

2006-06-25 Thread Simon
Another option may be using http://www.openssl.org/docs/crypto/, http://www.openssl.org/docs/ssl and http://www.openssl.org/docs/apps Is that the same as the generated files please? Seems so, however, my only comment is there is no printer-friendly version that would help me print a 400 pages

Re: How to verify OpenSSL lib version from autoconf?

2006-06-25 Thread William A. Rowe, Jr.
httpd's scripts are known to the autoconf community as gross bastardizations of intent of autoconf, so forwared ;-) But they do illustrate verifying the version of openssl, take a look at APACHE_CHECK_SSL_TOOLKIT in; http://svn.apache.org/repos/asf/httpd/httpd/trunk/acinclude.m4 Matt England wr

How to verify OpenSSL lib version from autoconf?

2006-06-25 Thread Matt England
My project's code is apparently compatible with OpenSSL 0.9.7g (and possibly higher) but not 0.9.8 (because the header file changed from 0.9.7 and 0.9.8...which seems rather undesirable). In any case, I'd like our autoconf macros to be able to automatically check to see if 0.9.7g and higher is

how do I use rsa_sign and rsa_verify?

2006-06-25 Thread Wu, Sonia X (Sonia)
openssl, I am trying to use the signature and verification primitives with the MD5 encoding method. I think the openssl rsa_sign and rsa_verify are the pair to represent it. Can you help me on how to use parms in these 2 functions? Specially I have problem on using RSA *rsa. Thank you. Sonia

Re: Creating compatible PKCS12 files

2006-06-25 Thread Dr. Stephen Henson
On Sat, Jun 24, 2006, Jason K. Resch wrote: > I'm attempting to make software that can use the crypto features in > either OpenSSL or Mozilla NSS. Thus far I've had little difficulty in > doing so except for one problem. When I export an > EncryptedPrivateKeyInfo (for a 2048 bit key) using OpenS