Creating TLS Connections


There's a pretty good tutorial on creating TLS clients and servers in C here. I've written a simple client, based on that, available here—but I have not implemented certificate verification. One caveat: this document is old—for the SSL_METHOD, use TLS_client_method() or TLS_server()_method.


C++ users might prefer this document.


You will need to consult the SSL man pages.