Re: Digital signature creation

2004-06-18 Thread Mike Sontum
Man pages for the openssl command on www.openssl.org Openssl is an executable that can be used to generate certificates, keys, etc. The page http://www.post1.com/home/ngps/m2/howto.ca.html has a tutorial on certificates. This uses the CA.pl which is a Perl wrapper that can be very helpful. It als

Re: how to get client IP on Server

2004-06-17 Thread Mike Sontum
See the demos section in openssl-0.9.7d/demos/ssl/serv.cpp. This is UNIX oriented answer there is a struct struct sockaddr_in sa_cli; that is defined in struct sockaddr_in { sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; unsigned c

Re: TLS and TOS

2004-06-17 Thread Mike Sontum
hanks, Mike >>> [EMAIL PROTECTED] 6/16/2004 5:00:28 PM >>> Hi Mike, Does this work for Windows (I am writing my program on Windows platform, and Windows presents a socket as a HANDLE )? It seems that this code is for Unix. Thanks, Elie At 04:31 PM 6/16/2004 -

Re: TLS and TOS

2004-06-16 Thread Mike Sontum
You can set any option you want for the socket. I set the linger option. The SSL layer is "above" the TCP layer and really does not affect the layer below it. After you get your socket's accept or connect you can then do the ssl = SSL_new (ctx); /* sd is the socket */ SSL_set_fd (ssl, sd); handsha

Re: Problem creating certificate

2004-06-11 Thread Mike Sontum
There is a Perl wrapper to openssl for creating certs called CA.pl . There is also a page that has a tutorial on creating certs with this at: http://www.post1.com/home/ngps/m2/howto.ca.html You might try some of the generic certs provided just to get it working. Look to see where your code is tryi

Re: Using rsa libraries in standalone C project

2004-06-10 Thread Mike Sontum
For starters you can look at the demos in openssl-0.9.7d/demos/ssl. I changed serv.cpp to serv.c. Here is a quick an dirty compile This is for HP cc you might have to check your makefile for what it used. The openssl include files are in /usr/local/include. cc -c -g -Ae -D _HPUX_SOURCE -I/usr/loc