sashan 05dad63cf7 fix demos/sslecho/main.c so it builds on OpenBSD too | 7 ay önce | |
---|---|---|
.. | ||
A-SSL-Docs.txt | 801c638c50 Added Simple SSL Echo Client/Server to demos. | 2 yıl önce |
README.md | 801c638c50 Added Simple SSL Echo Client/Server to demos. | 2 yıl önce |
cert.pem | 801c638c50 Added Simple SSL Echo Client/Server to demos. | 2 yıl önce |
key.pem | 801c638c50 Added Simple SSL Echo Client/Server to demos. | 2 yıl önce |
main.c | 05dad63cf7 fix demos/sslecho/main.c so it builds on OpenBSD too | 7 ay önce |
makefile | 66f4782f14 Create hierarchical demo Makefile. | 1 yıl önce |
This project implements a simple echo client/server.
It is a console application, with command line parameters determining the mode of operation (client or server). Start it with no parameters to see usage.
The server code was adapted from the Simple TLS Server on the OpenSSL Wiki. The server code was modified to perform the echo function, and client code was added to open a connection with the server and to send keyboard input to the server.
The new client code illustrates that:
The cert.pem and key.pem files included are self signed certificates with the "Common Name" of 'localhost'.
Best to create the 'pem' files using an actual hostname.