Trying to make sense of OpenSSL.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
notes
Makefile
README.md
ca.config
extfile.txt
makeca
makecerts
ocsp.txt
signer.txt
ssl_client.cpp
ssl_lib.cpp
ssl_lib.h
ssl_server.cpp
test.sh

README.md

SSL Demo

Investigating openssl. I wrote this a couple of years ago to help me understand openssl better, so the main aim is exercising features rather any particular use.

ssl_client and ssl_server are simple single threaded client and server applications.

To run, eg:

$ make

$ ./ssl_server 9999 &
$ echo "Hello world" | ./ssl_client localhost:9999
$ kill %1

See code for further options.

makecerts script (used by makefile) makes the necessary certificates; script may be modified to, for example, generate different types of certificate.

Modify the makefile for your desired version of openssl, by default it will compile against your local openssl dev installation, you can set OPENSSL or LIBRESSL in the makefile to point at a local (open|libre)ssl source tree & the build will get headers and libraries directly from there.

$ make test

runs a simple test script.