Name Date Size #Lines LOC

..19-Jun-2024-

A-SSL-Docs.txtH A D12-Apr-2022711 2111

MakefileH A D19-Jun-2024446 2613

README.mdH A D12-Apr-2022987 2719

build.infoH A D19-Jun-2024305 129

cert.pemH A D12-Apr-20221.9 KiB3332

key.pemH A D12-Apr-20223.2 KiB5352

main.cH A D19-Jun-202410.5 KiB370248

README.md

1OpenSSL Simple Echo Client/Server
2=================================
3
4This project implements a simple echo client/server.
5
6It is a console application, with command line parameters determining the mode
7of operation (client or server). Start it with no parameters to see usage.
8
9The server code was adapted from the Simple TLS Server on the OpenSSL Wiki.
10The server code was modified to perform the echo function, and client code
11was added to open a connection with the server and to send keyboard input
12to the server.
13
14The new client code illustrates that:
15
16- Connection to the SSL server starts as a standard TCP 'connect'.
17- Once connected with TCP, the client 'upgrades' to SSL using
18  SSL_connect().
19- When the SSL connection completes, data is sent and received using
20  SSL_write() and SSL_read().
21- Pretty simple.
22
23The cert.pem and key.pem files included are self signed certificates with the
24"Common Name" of 'localhost'.
25
26Best to create the 'pem' files using an actual hostname.
27