OpenSSL Example Programs 20011005 by Eric Rescorla October 5, 2001 Edition INTRODUCTION This package consists of a set of documented sample programs showing how to perform basic programming tasks with OpenSSL. wclient -- a simple web client emulator wserver -- a simple web server emulator wclient2 -- a version of wclient with some extra options including setting the cipher suite and session caching. wserver2 -- a version of wserver2 with some extra options including setting the cipher suite, client authentication, rehandshake, and session caching. sclient -- a simple client program that echos from the keyboard to the server and vice versa. sclient is a simple model of a terminal client such as Telnet. The documentation is in several files RUNNING -- documents the command line switches for these programs. part1.pdf -- a detailed description of what's going on in wclient and wserver. These programs and their associated text were originally written for a series of articles published in Linux Journal. The first article was published in the September issue and is included here as part1.pdf. The second article, describing wclient2, wserver2, and sclient will be published on the web in early October. This explains why we have both wclient and wclient2 (and wserver and wserver2). The first editions appear in the first article and the second ones in the second article. This structure also lets the reader learn the basics without advanced features getting in the way. Extremely detailed coverage of SSL/TLS can be found in SSL and TLS: Designing and Building Secure Systems Eric Rescorla Addison-Wesley, 2001 ISBN 0-201-61598-3 To download, see http://www.rtfm.com/openssl-examples