Name Date Size #Lines LOC

..12-Apr-2022-

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

README.mdH A D12-Apr-2022987 2719

cert.pemH A D12-Apr-20221.9 KiB3332

key.pemH A D12-Apr-20223.2 KiB5352

main.cH A D06-May-20229.8 KiB345225

makefileH A D12-Apr-2022183 136

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