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
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
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 -
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
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
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